C is a general-purpose programming language used for system programming (OS and embedded), libraries, games and cross-platform.
Is there a better way than simply trying to open the file? int exists(const char *fname) { FILE *file; if ((…
c filesystems cross-platformI'm a little bit confused about something. I was under the impression that the correct way of reading a C …
c scanfI want to know how and when can I use the exit() function like the program in my book: #include&…
cI'm trying to write a server program in C, using another client, I get this error when I try to …
c sockets connection-refusedWhat is the difference between doing: ptr = (char **) malloc (MAXELEMS * sizeof(char *)); or: ptr = (char **) calloc (MAXELEMS, sizeof(char*)); When …
c malloc callocI am trying to use time() to measure various points of my program. What I don't understand is why the …
c++ c linux time measurementI have seen many programs consisting of structures like the one below typedef struct { int i; char k; } elem; elem …
c struct typedefI was confused with usage of %c and %s in the following C program #include <stdio.h> void …
c printfI'm using Ubuntu and I'm also using Geany and CodeBlock as my IDE. What I'm trying to do is reading …
c string input scanf whitespace