confstr
extern size_t confstr(int name, char *buf, size_t len);
size = confstr(i, NULL, (size_t) 0);
size = confstr(i, string, sizeof(string));
size_t confstr(int name, char *buf, size_t len);