mirror of https://github.com/mkerrisk/man-pages
scandir.3: Minor reworking of text for example program
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
9a96fb657c
commit
e1d2d7740e
|
@ -288,8 +288,12 @@ and glibc 2.10 changed the definition of
|
|||
.BR versionsort ())
|
||||
to match the standard.
|
||||
.SH EXAMPLE
|
||||
The program below prints a list of the files in the current directory
|
||||
in reverse order.
|
||||
.\"
|
||||
.SS Program source
|
||||
\&
|
||||
.nf
|
||||
/* print files in current directory in reverse order */
|
||||
#define _DEFAULT_SOURCE
|
||||
#include <dirent.h>
|
||||
#include <stdio.h>
|
||||
|
|
Loading…
Reference in New Issue