Top "Cstring" questions

A string in the programming language C is represented as a sequence of characters followed by a null terminator (represented as \0).

How should I allocate memory for c-string char array?

So in attempting to learn how to use C-Strings in C++, I'm running into issues with memory allocation. The idea …

c++ c memory-management string-concatenation cstring
CString to LPCTSTR conversion

I have a CString variable that i a need to convert to LPCTSTR(const char*) .I need this conversion so …

c++ type-conversion cstring
Help with \0 terminated strings in C#

I'm using a low level native API where I send an unsafe byte buffer pointer to get a c-string value. …

c# string cstring
UTF-8, CString and CFile? (C++, MFC)

I'm currently working on a MFC program that specifically has to work with UTF-8. At some point, I have to …

c++ mfc utf-8 cstring cfile
CString to char*

We are using the CString class throughout most of our code. However sometimes we need to convert to a char *. …

c++ mfc memory-leaks cstring
g++ 4.6 issue no <bits/c++config.h> file as required by the header cstring

There is no file called bits/c++config.h in the c++ include directory which is required by the cstring …

c++ g++ clang cstring clang++
Breaking down string and storing it in array

I want to break down a sentence and store each string in an array. Here is my code: #include <…

c cstring strtok
What is std::string::c_str() lifetime?

In one of my programs, I have to interface with some legacy code that works with const char*. Lets say …

c++ string cstring
How to check if a CString contains only numeric characters

I'm reading from a file and parsing its contents. I need to make sure a CString value consist of only …

visual-c++ cstring visual-c++-2005
C - How to read a string line by line?

In my C program, I have a string that I want to process one line at a time, ideally by …

c cstring