diff options
Diffstat (limited to 'libtmpfilefd.html')
-rw-r--r-- | libtmpfilefd.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libtmpfilefd.html b/libtmpfilefd.html index 1d3cc040..9019023c 100644 --- a/libtmpfilefd.html +++ b/libtmpfilefd.html @@ -24,8 +24,8 @@ pm_tmpfile_fd(void); <h2>EXAMPLE</h2> -<p>This simple example creates a temporary file, writes "hello -world" to it, then reads back and prints those contents. +<p>This simple example creates a temporary file, writes "hello +world" to it, then reads back and prints those contents. <pre> #include <netpbm/pm.h> @@ -34,13 +34,13 @@ int fd; fd = pm_tmpfile(); -write(fd, "hello world\n", 17); +write(fd, "hello world\n", 17); lseek(fd, 0, SEEK_SET); read(fd, buffer, sizeof(buffer)); -fprintf(STDOUT, "temp file contains '%s'\n", buffer); +fprintf(STDOUT, "temp file contains '%s'\n", buffer); close(fd); |