Name: Anonymous 2011-10-14 1:31
Why can't I just declare a function without specifying the return type? Surely the C compiler would be able to figure out the type from what I am returning.
typedef void *(*func)(void *, ...);
char *str = (char*) malloc(sizeof(char)*1000);
int *length = str-sizeof(int);
printf("Length of str:%d\n", *length);