C is a general-purpose programming language used for system programming (OS and embedded), libraries, games and cross-platform.
alloca() allocates memory on the stack rather than on the heap, as in the case of malloc(). So, when I …
c stack malloc allocation allocaHow can I check if char* variable points to an empty string?
c pointers charFor example, I recently came across this in the linux kernel: /* Force a compilation error if condition is true */ #define …
cI want to reopen the stdin and stdout (and perhaps stderr while I'm at it) filehandles, so that future calls …
c redirect stdioHow to split a string into an tokens and then save them in an array? Specifically, I have a string "…
c split strtokI keep stumbling on the format specifiers for the printf() family of functions. What I want is to be able …
c printfI'm doing a program that aproximate PI and i'm trying to use long long, but it isn't working. Here is …
c long-integer piI need to align a series of numbers in C with printf() like this example: -------1 -------5 ------50 -----100 ----1000 …
c printf alignmentIf in C I write: int num; Before I assign anything to num, is the value of num indeterminate?
c initialization declaration