problem with scandir
Mark Overmars
markov at cs.ruu.nl
Tue Mar 26 05:16:30 AEST 1991
I have a problem with the routine scandir. After some stripping I came up with
the following program:
#include <sys/types.h>
#include <sys/dir.h>
main()
{
struct direct **namelist;
scandir("/bin", &namelist, NULL, NULL);
}
It dumps core. It does not do so for any other directory than /bin.
(Same behaviour on two unrelated machines.) Any reason why and any suggestions
how to solve it?
Mark Overmars
More information about the Comp.sys.sgi
mailing list