> Thanks for this tips, i'm going to change the calloc with malloc+memset
No, that IS calloc.
A for loop setting (*ls)[i] = NULL; is what is needed to be safe.
Type: Posts; User: Salem
> Thanks for this tips, i'm going to change the calloc with malloc+memset
No, that IS calloc.
A for loop setting (*ls)[i] = NULL; is what is needed to be safe.
if(dp == NULL)
...
while(NULL != ep)
Firstly, swapping operands is f-ugly to start with, even when it's applied consistently.
When you mix and match - ooh look - a colourful (and stinking)...