diff options
author | Michael Kerrisk <mtk.manpages@gmail.com> | 2007-09-10 02:44:09 +0000 |
---|---|---|
committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2007-09-10 02:44:09 +0000 |
commit | af9c7ff296d820ef13b6e62a53ec2e9aeb5aaead (patch) | |
tree | 0df56f350d1e7beef0ef0398f3a358ecb437d71a /man3 | |
parent | c3c1773e5742cc47341a0b5b80e1403ab105eb6b (diff) |
Add "#include <stdlib.h>" (to declatre exit(3)) to example program.
Diffstat (limited to 'man3')
-rw-r--r-- | man3/envz_add.3 | 1 | ||||
-rw-r--r-- | man3/fmtmsg.3 | 1 | ||||
-rw-r--r-- | man3/getgrent_r.3 | 1 | ||||
-rw-r--r-- | man3/rtime.3 | 1 | ||||
-rw-r--r-- | man3/strptime.3 | 1 | ||||
-rw-r--r-- | man3/wordexp.3 | 1 |
6 files changed, 6 insertions, 0 deletions
diff --git a/man3/envz_add.3 b/man3/envz_add.3 index c7cf7390..c5eb32be 100644 --- a/man3/envz_add.3 +++ b/man3/envz_add.3 @@ -120,6 +120,7 @@ Handle with care. .sp .nf #include <stdio.h> +#include <stdlib.h> #include <envz.h> int diff --git a/man3/fmtmsg.3 b/man3/fmtmsg.3 index ca1a19a5..a4c36f56 100644 --- a/man3/fmtmsg.3 +++ b/man3/fmtmsg.3 @@ -237,6 +237,7 @@ vpfmt(), lfmt(), and vlfmt()", and will be removed later. .SH EXAMPLE .nf #include <stdio.h> +#include <stdlib.h> #include <fmtmsg.h> int diff --git a/man3/getgrent_r.3 b/man3/getgrent_r.3 index 8242f604..8f7f2480 100644 --- a/man3/getgrent_r.3 +++ b/man3/getgrent_r.3 @@ -143,6 +143,7 @@ in the stream with all other threads. #define _GNU_SOURCE #include <grp.h> #include <stdio.h> +#include <stdlib.h> #define BUFLEN 4096 int diff --git a/man3/rtime.3 b/man3/rtime.3 index 9d0333ae..f592b427 100644 --- a/man3/rtime.3 +++ b/man3/rtime.3 @@ -82,6 +82,7 @@ The result is the localtime of the computer 'linux'. .sp .nf #include <stdio.h> +#include <stdlib.h> #include <errno.h> #include <string.h> #include <time.h> diff --git a/man3/strptime.3 b/man3/strptime.3 index 8a1feab1..926378f3 100644 --- a/man3/strptime.3 +++ b/man3/strptime.3 @@ -384,6 +384,7 @@ and .sp .nf #include <stdio.h> +#include <stdlib.h> #include <time.h> int diff --git a/man3/wordexp.3 b/man3/wordexp.3 index 7eb9b4c9..d91487c7 100644 --- a/man3/wordexp.3 +++ b/man3/wordexp.3 @@ -86,6 +86,7 @@ The output is approximately that of "ls [a-c]*.c". .LP .nf #include <stdio.h> +#include <stdlib.h> #include <wordexp.h> int |