Mail Archives: djgpp/1996/11/27/06:29:07
On Tue, 26 Nov 1996, Jean-Gakl GRICOURT wrote:
> - no argument -> memory fault.
When you call a program with no arguments, argv[1] is a null pointer.
While it is generally desirable that library functions be protected
against such calamities, IMHO anybody who passes a null pointer to a
library function is looking for trouble. For example, try something like
``strcpy (0, "You're gonna crash!")'' and watch the fun.
> - arg="\" -> don't list the root of the disk.
> - arg=".." -> don't list the root if ".." is really linked to the
> root.
These two work for me as you'd expect; they even simulate (the
nonexistent) "." and ".." entries in the root directory. What version of
DJGPP are you using? `readdir' has been changed in v2.01, so maybe you
are using an old version?
- Raw text -