![]() |
| | #1 |
| Registered User Join Date: Oct 2006
Posts: 298
| opendir() returns null but errno is zero |
| Elkvis is offline | |
| | #2 |
| Kernel hacker Join Date: Jul 2007 Location: Farncombe, Surrey, England
Posts: 15,686
| Perhaps posting the relevant code would help here... Sometimes someone else will spot the simple mistake that the person who wrote the code hasn't spotted. -- Mats
__________________ Compilers can produce warnings - make the compiler programmers happy: Use them! Please don't PM me for help - and no, I don't do help over instant messengers. |
| matsp is offline | |
| | #3 |
| Registered User Join Date: Oct 2006
Posts: 298
| this was the problem: Code: DIR* d = NULL;
d = opendir("mydir");
if (d == NULL);
{
switch (errno)
{
// print errno to screen here and report the error
}
}
|
| Elkvis is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| New string functions | Elysia | C Programming | 11 | 03-28-2009 05:03 AM |
| Syntax Error?? | Kennedy | C Programming | 8 | 09-06-2006 11:04 AM |
| Button handler | Nephiroth | Windows Programming | 8 | 03-12-2006 06:23 AM |
| Help with yacc/compiler design/seg fault | trippeer | C Programming | 1 | 04-08-2005 03:43 AM |
| button 'message' | psychopath | Windows Programming | 12 | 04-18-2004 09:57 AM |