| www.delorie.com/djgpp/doc/libc-2.01/libc_501.html | search |
#include <unistd.h> long pathconf(const char *filename, int name);
This function returns various system-dependent configuration values. The name is one of the following:
_PC_LINK_MAX
_PC_MAX_CANON
_PC_MAX_INPUT
_PC_NAME_MAX
_PC_PATH_MAX
_PC_PIPE_BUF
_PC_CHOWN_RESTRICTED
_PC_NO_TRUNC
_PC_NAME_MAX are truncated, otherwise
an error occurs if you use longer names.
_PC_VDISABLE
The selected configuration value is returned.
char *buf = malloc(pathconf("c:/", _PC_MAX_PATH)+1);
Go to the first, previous, next, last section, table of contents.
| prev next webmaster | delorie software privacy |
| Copyright © 1997 | Updated Apr 1997 |