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. Nice example but does not work on me, after execut
View Tutorial          By: Junjie Zhang at 2012-01-10 03:26:12

2. Thank you! :) But I have a question, why is that t
View Tutorial          By: choco at 2010-01-03 02:16:18

3. i have connected my phone through bluetooth and us
View Tutorial          By: nikitha at 2013-02-05 09:07:34

4. I like your explanition its very uesfull
View Tutorial          By: Salah Mohamed at 2011-12-10 15:47:27

5. the default implementation of validate returns nul
View Tutorial          By: Jerry at 2009-02-01 11:12:06

6. Before i had lot of doubts in abstract class... no
View Tutorial          By: Mohandoss at 2012-04-02 05:08:43

7. You have no way of knowing when errno was last set
View Tutorial          By: s.b at 2010-05-18 20:54:24

8. Nice post. I am learning so much things from your
View Tutorial          By: Umesh Kumar at 2012-03-15 11:16:24

9. It gives strange result when we use == as delimite
View Tutorial          By: Amit at 2010-05-07 05:03:41

10. Hi Prathamesh,
Maybe the COM port to which

View Tutorial          By: Ramlak at 2007-03-19 00:46:49