C is a general-purpose programming language used for system programming (OS and embedded), libraries, games and cross-platform.
Using the following code: #include<stdio.h> #include<time.h> int main() { clock_t start, stop; …
c time clockI have a need for a fixed-size (selectable at run-time when creating it, not compile-time) circular buffer which can hold …
c data-structures circular-bufferIs there a way to determine how many cores a machine has from C/C++ in a platform-independent way? If …
c++ c multithreading multiplatformI've written the following code to read a line from a terminal window, the problem is the code gets stuck …
c stdin fgetsI'm working on a library to provide simple reliable communication over an RS232 or RS485 connection. Part of this code …
c crc crc16In Linux I want to add a daemon that cannot be stopped and which monitors filesystem changes. If any changes …
c linux daemonI am using scanf() to get a set of ints from the user. But I would like the user to …
c scanfI just want to flip a boolean based on what it already is. If it's true - make it false. …
c++ c boolean boolean-logic#include<stdio.h> #include<string.h> int main() { char s[100] ="4.0800" ; printf("float value : %4.8f\n" ,(float) …
c floating-point type-conversion atof strtod