scandir.3: Minor reworking of text for example program

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-12-15 14:26:11 +01:00
parent 9a96fb657c
commit e1d2d7740e
1 changed files with 5 additions and 1 deletions

View File

@ -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>