Top "Const-char" questions

how to convert from int to char*?

The only way I know is: #include <sstream> #include <string.h> using namespace std; int main() { …

c++ integer const-char
How to convert const char* to char* in C?

In my project there is a method which only returns a const char*, whereas I need a char* string, as …

c pointers const-char
Dynamically allocating memory for const char string using malloc()

I am writing a program that reads a value from an .ini file, then passes the value into a function …

c++ c malloc const-char const-pointer
Creating file names automatically C++

I'm trying to write a program in C++, which creates some files (.txt) and writes down the result in them. …

c++ file names const-char
Is it appropriate to set a value to a "const char *" in the header file

I have seen people using 2 methods to declare and define char *. Medhod 1: The header file has the below extern const …

c++ const-char effective-c++
Compare Objective-C const char with NSString

I was wondering if there is a simple way to compare a const char with an NSString, or do I …

objective-c nsstring const-char
GetLogicalDriveStrings() and char - Where am I doing wrongly

I want to search a file which may be present in any drives such as C:\, D:\ etc. Using GetLogicalDriveStrings …

c++ char msdn const-char
const char pointer declaration in struct

I'm trying to do this, but my compiler won't let me: struct { const char* string = "some text"; } myAnonymousStruct; I believe …

c++ struct const-char
printf question with a const char* variable

I am stuck in a printf problem. I would appreciate if I can get some help here: In the below …

c++ printf const-char