C is a general-purpose programming language used for system programming (OS and embedded), libraries, games and cross-platform.
I am trying to write a linux kernel module that communicates with user process using netlink. I am using netlink …
c linux-kernel linux-device-driver netlinkI understand that fgets reads until EOF or a newline. I wrote a sample code to read lines from a …
c file-io fgetsJust curious, what actually happens if I define a zero-length array int array[0]; in code? GCC doesn't complain at all. …
c++ c arraysHow do I check if an integer is even or odd using bitwise operators
c bitwise-operatorsHow do you do nonblocking console IO on Linux/OS X in C?
c linux macos io nonblockingI have a function int rt_task_start (RT_TASK *task, void(*task_func)(void *arg), void *arg) where in …
c xenomaiMy application creats a TCP connection, This is working normaly. But in one network server has many IP say 174.X.…
c networking tcp network-programming errnoThere's (1): // assume x,y are non-negative if(x > max - y) error; And (2): // assume x,y are non-negative int …
c integer-overflowI have a buffer which I receive through a serial port. When I receive a certain character, I know a …
c buffer printf