Top "C" questions

C is a general-purpose programming language used for system programming (OS and embedded), libraries, games and cross-platform.

How large should my recv buffer be when calling recv in the socket library

I have a few questions about the socket library in C. Here is a snippet of code I'll refer to …

c sockets buffer recv
Converting from signed char to unsigned char and back again?

I'm working with JNI and have an array of type jbyte, where jbyte is represented as an signed char i.…

c++ c java-native-interface
How do I find the current machine's full hostname in C (hostname and domain information)?

In a C project (POSIX), how do I get the fully qualified name for the current system? For example, I …

c sockets posix environment
Assign multiple values to array in C

Is there any way to do this in a condensed form? GLfloat coordinates[8]; ... coordinates[0] = 1.0f; coordinates[1] = 0.0f; coordinates[2] = 1.0f; coordinates[3] = 1.0…

c arrays initialization declaration
Getting IPV4 address from a sockaddr structure

How can I extract an IP address into a string? I can't find a reference that tells me how char …

c ip-address
What is the difference between vmalloc and kmalloc?

I've googled around and found most people advocating the use of kmalloc, as you're guaranteed to get contiguous physical blocks …

c linux-kernel kmalloc vmalloc
How to disable compiler optimizations in gcc?

I am trying to learn assembly language. I have searched and found how to disassemble a .c file but I …

c gcc compiler-optimization compiler-options
Reading an image file in C/C++

I need to read an image file in C/C++. It would be very great, if some one can post …

c++ c jpeg
Is It Possible to NSLog C Structs (Like CGRect or CGPoint)?

I want to be able to debug C structures without having to explicitly type every property that they consist of. …

c objective-c cocoa cocoa-touch
Ranges of floating point datatype in C?

I am reading a C book, talking about ranges of floating point, the author gave the table: Type Smallest Positive …

c floating-point ieee-754