How to trigger SIGUSR1 and SIGUSR2? – I’m getting acquainted with signals in C. I can’t figure out what kind […]
Category: C Error
Problem trying to use the C qsort function
Problem trying to use the C qsort function – #include <stdio.h> #include <stdlib.h> float values[] = { 4, 1, 10, […]
How strcpy works behind the scenes?
How strcpy works behind the scenes? – This may be a very basic question for some. I was trying to […]
tidy code for asynchronous IO
tidy code for asynchronous IO – Whilst asynchronous IO (non-blocking descriptors with select/poll/epoll/kqueue etc) is not the most documented thing […]
Why does the preprocessor directive in one function affect the compilation of another?
Why does the preprocessor directive in one function affect the compilation of another? – Following program compiles successfully and print […]
Combining static libraries
Combining static libraries – Suppose I have three C static libraries say libColor.a which depends on *libRGB.*a which in turn […]
free() not deallocating memory?
free() not deallocating memory? – free(str); printf(“%dn”, str->listeners); The call to printf succeeds (as do any other calls to str’s […]
What does && mean in void *p = &&abc;
What does && mean in void *p = &&abc; – I came across a piece of code void *p = […]
pthreads – Join on group of threads, wait for one to exit
pthreads – Join on group of threads, wait for one to exit – In the POSIX thread interface, pthread_join(thread) can […]
Portable way to check if a char* pointer is a null-terminated string
Portable way to check if a char* pointer is a null-terminated string – I have a C function that takes […]