This is the mail archive of the
cygwin-talk
mailing list for the cygwin project.
FW: Problem with stat
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "Thread TITTTL'd!" <cygwin-talk at cygwin dot com>
- Date: Tue, 26 Jun 2007 11:13:13 +0100
- Subject: FW: Problem with stat
- Reply-to: The Cygwin-Talk Maiming List <cygwin-talk at cygwin dot com>
On 26 June 2007 04:57, Erich Dollansky wrote:
> PRIVATE VOID StatLessdox (VOID)
> BEGIN
> 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");
> END;
> IF (S_ISREG (Stat.st_mode)) THEN
> printf ("Is a regular file.\n");
> END;
> IF (S_ISLNK (Stat.st_mode)) THEN
> printf ("Link flag is set.\n");
> END;
> END;
> END;
roflmao <wipes tear of hysterical laughter from eye>
#define BEGIN {
#define THEN {
#define END }
how many syonyms for a brace can one man possibly need? lollollol
#define IF if
#define VOID void
#define STUPID stupid stupid stupid
<collapses in giggles again>
cheers,
DaveK
--
Can't think of a witty .sigline today....