Internationalization and localization tools


File and Path Function

long int pathconf(const char *filename, int parameter);

Internationalization (I18n) Function Overview

The pathconf function is used to inquire about the limits that apply to the file named filename.

Note that the normal return value from pathconf is the requested value. A value of -1 is returned to indicate that the implementation does not impose a limit, and in case of an error. In the former case, the global variable errno is not set, while in the latter case, errno is set to indicate the cause of the problem. Therefore, the only way to use this function robustly is to store 0 into errno just before calling pathconf.

I18n Issues

On ANSI UTF-16 platforms, use a conversion function to convert the wide-character string to a multibyte-character string and then call open64.

See Pathnames for a discussion of path and filename considerations in an internationalized application.

Recommended Replacements*

*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.

File and Path Functions

 

Lingoport internationalization and localization services and software