i've been trying some stuff with the realloc function and ran into a problem with strings:
char *s="hello";
s=realloc(s,size); // this return null
char *p;
p=malloc(5);
strcpy(p,"hello");
p=realloc(p,size) // this works fine
why does the first declaration fail?