new copyright notice
[unix-history] / usr / src / lib / libc / gen / scandir.3
index 4e09d0d..8ad2c5c 100644 (file)
@@ -1,8 +1,9 @@
 .\" Copyright (c) 1983 Regents of the University of California.
 .\" Copyright (c) 1983 Regents of the University of California.
-.\" All rights reserved.  The Berkeley software License Agreement
-.\" specifies the terms and conditions for redistribution.
+.\" All rights reserved.
 .\"
 .\"
-.\"    @(#)scandir.3   6.2 (Berkeley) %G%
+.\" %sccs.include.redist.man%
+.\"
+.\"    @(#)scandir.3   6.5 (Berkeley) %G%
 .\"
 .TH SCANDIR 3  ""
 .UC 5
 .\"
 .TH SCANDIR 3  ""
 .UC 5
@@ -15,7 +16,7 @@ scandir, alphasort \- scan a directory
 .PP
 .B scandir(dirname, namelist, select, compar)
 .B char *dirname;
 .PP
 .B scandir(dirname, namelist, select, compar)
 .B char *dirname;
-.B struct direct *(*namelist[]);
+.B struct direct ***namelist;
 .B int (*select)();
 .B int (*compar)();
 .PP
 .B int (*select)();
 .B int (*compar)();
 .PP
@@ -29,8 +30,9 @@ reads the directory
 and builds an array of pointers to directory
 entries using
 .IR malloc (3).
 and builds an array of pointers to directory
 entries using
 .IR malloc (3).
-It returns the number of entries in the array and a pointer to the
-array through
+It returns the number of entries in the array.
+A pointer to the array of directory entries is stored in the location
+referenced by
 .IR namelist .
 .PP
 The
 .IR namelist .
 .PP
 The