Search:

Type: Posts; User: Salem

Search: Search took 0.31 seconds.

  1. Replies
    11
    Views
    5,225

    > Thanks for this tips, i'm going to change the...

    > 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.
  2. Replies
    11
    Views
    5,225

    if(dp == NULL) ... while(NULL != ep)...

    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)...
Results 1 to 2 of 2