Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTString::c_str

Syntax

pTEXT c_str( ) const

Parameters

This method has no parameters.

Description

c_str returns a ‘C’ language format character string, with the same contents represented by the CTString object.

Return

c_str returns a pointer with a null-terminated character array containing the same characters as the CTString class. If the CTString is unassigned, c_str returns NULL.

Example


CTString name = "John";

printf("%s", CTString_sample.c_str());


TOCIndex