Description:
Discussion about C.
|
|
|
Anyone wanting to review and provide feedback on my library?
|
| |
Hi there! I've put together a library with useful (at least for me) C code that I've written over time. So far I have utilities for: - Debugging - Logging - Unit Testing (simple but TAP compatible) - Error handling - Finite State Machines - Variable length strings - Variable length arrays... more »
|
|
linked list
|
| |
hello everyone. Who can help me telling me what's wrong in the following code? ...typedef struct datum { char *name; int data; struct datum *next; ...void print(NODE *); int main(void) { NODE *head = (NODE *) malloc(sizeof(NODE)); head->name = (char *) malloc( strlen("head")); strcpy( "head", head->name);... more »
|
|
restrict dodginess
|
| |
if printf takes a restrict pointer, then what happens in printf("%s", "%s"); Is the compiler obliged to have 2 copies of the string? Phil
|
|
How do we find out which object file is pulled in by the linker?
|
| |
Hi, Two object files foo_1.o and foo_2.o each have the same function a() defined and they have no other functions. foo_1.o is in a library specified prior to the library including foo_2.o The linker would pull in only foo_1.o in this case. What option can I give to gcc / ld to verify the above statement?... more »
|
|
wave file data to array using libsndfile
|
| |
Hi- I'm really new to c+ (this is day two) and I'm trying to write a program that will allow me to write audio data from a wave file into two arrays for the left channel and the right channel, i've pieced together this code so far and its definitely grabbing something from the wave file however i've no idea if its writing out left or right... more »
|
|
|