Minor rewrites in code example

This commit is contained in:
Michael Kerrisk 2007-06-13 22:29:57 +00:00
parent dded5e0c3f
commit 6cd17cdef7
1 changed files with 5 additions and 2 deletions

View File

@ -127,10 +127,13 @@ the POSIX.2 system utilities:
.nf
.in 10
char *pathbuf; size_t n;
char *pathbuf;
size_t n;
n = confstr(_CS_PATH,NULL,(size_t) 0);
if ((pathbuf = malloc(n)) == NULL) abort();
pathbuf = malloc(n);
if (pathbuf == NULL)
abort();
confstr(_CS_PATH, pathbuf, n);
.SH "SEE ALSO"
.BR sh (1),