in reply to Re^3: true from (-e "") on Windoze (" is an illegal filename character
in thread true from (-e "") on Windoze
I don't know what combination of compiler and OS you use, but on my system (Win7 Ult + Strawberry 5.14.2 x64), your unmodified code clearly shows that stat() fails:
X:\>gcc -Wall --pedantic -o 979536.exe 979536.c 979536.c: In function 'main': 979536.c:18: warning: ISO C does not support the 'I64' ms_printf lengt +h modifier 979536.c:18: warning: ISO C does not support the 'I64' ms_printf lengt +h modifier 979536.c:18: warning: ISO C does not support the 'I64' ms_printf lengt +h modifier 979536.c:18: warning: format '%d' expects type 'int', but argument 11 +has type '_off_t' 979536.c:29: warning: ISO C does not support the 'I64' ms_printf lengt +h modifier 979536.c:29: warning: ISO C does not support the 'I64' ms_printf lengt +h modifier 979536.c:29: warning: ISO C does not support the 'I64' ms_printf lengt +h modifier 979536.c:29: warning: format '%d' expects type 'int', but argument 11 +has type '_off_t' X:\>979536.exe for ""; stat returned: -1 gid: 0 atime:0 ctime:0 drive:0 inode:0 mode:0 mtime:0 nlink:0 rdev:0 size:0 uid:0 For (null); stat returned: -1 gid: 0 atime:0 ctime:0 drive:0 inode:0 mode:0 mtime:0 nlink:0 rdev:0 size:0 uid:0 X:\>gcc --version gcc (GCC) 4.4.7 20111023 (prerelease) [svn/rev.180339 - mingw-w64/oz] Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There i +s NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PUR +POSE. X:\>
Alexander
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: true from (-e "") on Windoze (" is an illegal filename character
by BrowserUk (Patriarch) on Jul 03, 2012 at 19:47 UTC | |
by afoken (Chancellor) on Jul 05, 2012 at 20:13 UTC | |
by BrowserUk (Patriarch) on Jul 05, 2012 at 20:39 UTC | |
|
Re^5: true from (-e "") on Windoze (" is an illegal filename character
by Anonymous Monk on Jul 03, 2012 at 19:44 UTC | |
by afoken (Chancellor) on Jul 05, 2012 at 19:55 UTC | |
|
Re^5: true from (-e "") on Windoze (" is an illegal filename character
by Anonymous Monk on Jul 03, 2012 at 19:48 UTC |