Email List: Xaustin-review-lX
[All Lists]

Re: Defect in XSH EXAMPLES

To: yyyyy@xxxxxxxxxxx
Subject: Re: Defect in XSH EXAMPLES
From: Dragan Cvetkovic <yyyyyy@xxxxxxxxxxx>
Date: Fri, 7 Jun 2002 14:12:08 -0400 (EDT)
Cc: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
On Fri, 7 Jun 2002 yyyyy@xxxxxxxxxxx wrote:

[snipped]

>         The following sample program will search the current directory
> for each of the arguments supplied on the command line:
> 
>       #include <sys/types.h>
>       #include <dirent.h>
>       #include <errno.h>
>       #include <stdio.h>
>       #include <strings.h>

Actually, #include <string.h> would be enough, especially since strcmp()
mentions <string.h> in its declaration in the XSH text. Just nitpocking,
but that's what the standard is about :-)

Bye, Dragan

-- 
Dr Dragan Cvetkovic, Soliton Associates Ltd, yyyyyy@xxxxxxxxxxx

To be or not to be is true. G. Boole    No it isn't.  L. E. J. Brouwer

<Prev in Thread] Current Thread [Next in Thread>