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



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. This is an old method although it works. The bette
View Tutorial          By: Emiley at 2013-01-11 03:56:02

2. Hi sir, Your explain is very good sir,
View Tutorial          By: Surendra Majji at 2013-02-14 04:55:49

3. Superb article
View Tutorial          By: Raj at 2015-01-29 11:18:22

4. good
View Tutorial          By: dock at 2013-06-07 15:18:49

5. Excellent!!!!! Thanks
View Tutorial          By: nimbostratue at 2009-12-09 13:07:09

6. This is the helpful Site for beginner....!!!!!!!!!
View Tutorial          By: Anup at 2013-07-26 13:40:49

7. thank you man.
View Tutorial          By: Hariharan at 2012-08-03 01:39:16

8. nice example..
View Tutorial          By: righana at 2011-07-19 08:46:50

9. There is another similar discussion on use of tern
View Tutorial          By: Syed Mamun Raihan at 2008-09-10 11:29:42

10. Thanks a lot for the code...
thats working

View Tutorial          By: Rahul at 2008-06-28 14:16:10