j
k
j a
j l
Just change
if((X = malloc(a+1)) == NULL) error();
to
if(a==0) X = NULL; else if((X = malloc(a)) == NULL) error();
Done.
Back to the thread
Back to the list