To find out how big a buffer is needed to store the string value of name, enter: confstr(_CS_PATH, NULL, (size_t) 0) The confstr function returns the size of the buffer necessary.