I'm defining a char pointer in this manner.
char *s=(char *)malloc(10); After I fill in all possible values that can fit here, I want to clear whatever I wrote to s and without using malloc again want to write in s? How can I do this?
I need to update the contents but if in the last iteration not all values are updated, then I'll be processing over old values which I do not want to do.
sanyway?sizeof(2*5)looks funny... Try alsosizeof(2/0)sizeof(-1000)would give you a negative-sized array: quite useful if you are out of memory!