summaryrefslogtreecommitdiff
path: root/manual/filesys.texi
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1992-05-06 05:06:34 +0000
committerRoland McGrath <roland@gnu.org>1992-05-06 05:06:34 +0000
commit119982076e0e2b1562bae87e5af9a0b0c61b0f99 (patch)
tree759b6e80151f8916c7899981523f88e96fbc70ab /manual/filesys.texi
parentfbad238fa3c59a7284f3f63a10f22f39bb6074c4 (diff)
Cleaned up code in examples.
Replaced some examples with @include foo.c.texi. The source is found in examples/foo.c.
Diffstat (limited to 'manual/filesys.texi')
-rw-r--r--manual/filesys.texi19
1 files changed, 1 insertions, 18 deletions
diff --git a/manual/filesys.texi b/manual/filesys.texi
index 0f4985f7bf..11e70570f2 100644
--- a/manual/filesys.texi
+++ b/manual/filesys.texi
@@ -296,24 +296,7 @@ Here's a simple program that prints the names of the files in
the current working directory:
@example
-#include <stddef.h>
-#include <stdio.h>
-#include <sys/types.h>
-#include <dirent.h>
-
-main ()
-@{
- DIR *dp;
- struct dirent *ep;
-
- if (dp = opendir ("./")) @{
- while (ep = readdir (dp))
- puts (ep->d_name);
- closedir (dp);
- @}
- else
- perror ("couldn't open working directory");
-@}
+@include dir.c.texi
@end example
The order in which files appear in a directory tends to be fairly