Programming Tutorials

Comment on Tutorial - Listing Files and Directories sample program in C By Daniel Malcolm



Comment Added by : Sebastiaan Jaarsma

Comment Added at : 2012-12-24 19:28:43

Comment on Tutorial : Listing Files and Directories sample program in C By Daniel Malcolm
Following line
if (strcmp(dp->name, ".") == 0
|| strcmp(dp->name, ".."))

should in fact be
if (strcmp(dp->name, ".") == 0
|| strcmp(dp->name, "..") == 0)

besides that nice C reference page.

Kind regards,
Sebastiaan Jaarsma


View Tutorial