confstr.3c (2010 09)

c
confstr(3C) confstr(3C)
EXAMPLES
The following code fragment calls confstr() to determine the correct buffer size for
_CS_PATH, allo-
cates space for this buffer, then gets the configuration value for
_CS_PATH.
#include <unistd.h>
#include <stddef.h>
size_t bufsize;
char *buffer;
bufsize=confstr(_CS_PATH,NULL,(size_t)0);
buffer=(char *)malloc(bufsize);
confstr(_CS_PATH,buffer,bufsize);
AUTHOR
confstr() was developed by HP.
FILES
/usr/include/unistd.h
symbolic constants and structures used for support of the /usr/group standard
SEE ALSO
getconf(1), errno(2), fpathconf(2), pathconf(2), sysconf(2), malloc(3C), thread_safety(5).
STANDARDS CONFORMANCE
confstr(): XPG4, POSIX.2
4 Hewlett-Packard Company 4 HP-UX 11i Version 3: September 2010