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).

MFC: std::string vs CString?

Using C++ with MFC. Coming from a C# background I typically just use string for all, well, strings. I use …

c++ string mfc cstring stdstring
iPhone stringWithCString is deprecated

I use this code to read data from sqlite database: keyFromSql = [NSString stringWithCString:(char *)sqlite3_column_text(preparedStatement, 1)]; but the …

iphone string sqlite cstring deprecated
Working with C strings in Swift, or: How to convert UnsafePointer<CChar> to CString

While playing with Standard C Library functions in Swift, I came across problems when passing C strings around. As a …

swift cstring
How to create my own strcpy function?

I am trying to design a program in which I will create a 3 functions that resemble functions in the c-standard …

string cstring strcmp strlen strncpy
How to elegantly initialize vector<char *> with string literal?

The problem comes from an exercise on C++ Primer 5th Edition: Write a program to assign the elements from a …

c++ vector initialization cstring stdstring
Conversion of UTF-8 char * to CString

How do I convert a string in UTF-8 char* to CString?

c++ utf-8 char cstring unicode-string
Matplotlib, alternatives to savefig() to improve performance when saving into a CString object?

I am trying to speed up the process of saving my charts to images. Right now I am creating a …

python performance matplotlib plot cstring
How can I slice a string in C?

I need to find if a char array starts with "ADD". I know to use strcmp(), but I don't know …

c string cstring slice
How to get a CString object from a file with CFile::Read() in Unicode?

The charset is Unicode. I want to write a string of CString type into a file, and then read it …

c++ unicode cstring cfile
What is the difference between str==NULL and str[0]=='\0' in C?

I want to know the difference between str == NULL and str[0] == '\0': int convert_to_float(char *str, double *…

c pointers gcc cstring