File and Path Function
int truncate64(const char *name, off64_t length);
Internationalization (I18n) Function Overview
truncate64 is similar to the truncate
function. The difference is that the length argument is 64 bits wide even on 32 bit
machines, which allows the handling of files with sizes up to 2^63 bytes.
The function returns 0 if successful; else it returns -1 and sets
the global errno variable with the error value.
There is no wide-character version of the function.
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 truncate64 .
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
|