C is a general-purpose programming language used for system programming (OS and embedded), libraries, games and cross-platform.
I remember back in the day with the old borland DOS compiler you could do something like this: asm { mov …
c inline-assembly assemblyi have the following code: #include <stdio.h> int main(void) { float a[4] __attribute__((aligned(0x1000))) = {1.0, 2.0, 3.0, 4.0}; printf("%p %…
c gcc memory-alignment callstackI have a pthread_t, and I'd like to change its CPU affinity. The problem is that I'm using glibc 2.3.2, …
c linux unix pthreads system-callsThe declaration of fread is as following: size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream); …
c freadThis is the server (sendfile) part: offset = 0; for (size_to_send = fsize; size_to_send > 0; ){ rc = sendfile(newsockd, fd, &…
c sockets sendfileI've reviewed questions How to use include directive correctly and C++ #include semantics and neither addresses this - nor do …
c include headerI would like to know how Lua handles the number to string conversions using the tostring() function. It is going …
c lua tostringIn my C/C++ program, I'm using OpenCV to capture images from my webcam. The camera (Logitech QuickCam IM) can …
c image opencv webcam resolutionsIn fork child, if we modify a global variable, it will not get changed in the main program. Is there …
c forkI'm trying to figure out how to cut part of a string in C. For example you have this character …
c string cut