This is the mail archive of the
mailing list for the Cygwin project.
Re: Problem with stat
Václav Haisman wrote:
this is why I mentioned that it is C++.
Erich Dollansky wrote:
When I run this little C++ program:
PRIVATE VOID StatLessdox (VOID)
struct stat Stat;
IF (stat ("/usr/X11R6/share/doc/lesstif-0.94.4/html/Lessdox", &Stat)
== 0) THEN
printf ("Mode: %lX\n", (unsigned long) Stat.st_mode);
IF (S_ISDIR (Stat.st_mode)) THEN
printf ("Directory flag is set.\n");
IF (S_ISREG (Stat.st_mode)) THEN
printf ("Is a regular file.\n");
IF (S_ISLNK (Stat.st_mode)) THEN
printf ("Link flag is set.\n");
This is NOT C++. Not without some obscure header included before the source.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html