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



Ask a Question

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. Including the required mail properties should solv
View Tutorial          By: Rajesh Vaddi at 2011-12-13 23:55:15

2. i need jsp code for free sms send.
if anybo

View Tutorial          By: Harish at 2008-10-30 03:20:31

3. how to read csv file using Java
View Tutorial          By: Shireesha at 2013-12-26 07:34:22

4. super explaination
View Tutorial          By: santhish at 2011-07-06 05:00:54

5. may i have one more example
View Tutorial          By: bujii at 2015-05-08 03:04:40

6. informative article.......
View Tutorial          By: Nithin at 2012-08-17 15:32:37

7. this is genius.
you are a master of recursi

View Tutorial          By: Chandler at 2010-03-26 09:56:08

8. sir i want how to write record into file and readi
View Tutorial          By: danny at 2011-12-23 16:30:26

9. hii
my crys rpt is nt generating bill, it i

View Tutorial          By: Afan Khan at 2012-04-05 16:48:40

10. how to import myownclass into another class same p
View Tutorial          By: rana at 2013-04-19 17:32:08