| OpSys Spring 2006 - HW2 FAQ |
|   OpSys Home   |   HW2 Assignment |
+ ., .. and readdir()
|
Question: | How do I avoid handling |
|
Answer: | Each time you read a directory entry (using
dp = readdir(dirp);
if (strcmp(dp->d_name,".")==0)
...
It's best to avoid making assumptions about whether
|