Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in c-strings

A null character '\0' at the end of a string

Is nullptr used to terminate C-style strings?

c++ c pointers c++11 c-strings

Why does `(void *)&` get the address of the variable?

What is the exact type of "" when deduced by `auto`?

c++ c++11 auto c-strings

Why doesn't a pointer to an element in a c-string return just the element?

c++ string pointers c-strings

Can std::string::c_str() be used whenever a string literal is expected?

Correctly pass a char array and char pointer to function by reference in C

c arrays pointers c-strings

How to add two strings?

Post increment with pointers in while loop in C

c c-strings

Is it mandatory to give '\0' for initialization of character arrays?

arrays c c-strings

Use of pointers on strings

c c-strings char-pointer

Strange std::cout behaviour with const char*

Allocate room for null terminating character when copying strings in C?

c++ c-strings

How to perform calculation in preprocessor with stringification in C [duplicate]

How to initialize an unsigned char array from a string literal?

c++ c-strings

Reading a file from stdin

c file stdin c-strings

Portablilty of using percison when printf-ing non 0 terminated strings

c printf posix c-strings

What is the reason for not being able to deduce array size from initializer-string in member variable?

If char*s are read only, why can I overwrite them?

strncpy or strlcpy in my case

c copy c-strings strncpy