formZ SDK | 5.0 API Reference | System | Runtime Library (FZRT) | File

# fzrt_file_cnvt_name

Description

Converts a file name from the default character set to the character set encoding suitable for the std C file functions. On MacOS X, the file encoding is UTF8

Plugin Prototype

fzrt_error_td fzrt_file_cnvt_name(

const char * | fname,
char * | fs_name,
fzrt_unsigned_int | buf_len )

Parameters

fname [Input]

Null-terminated filename in default character set

fs_name [Result]

pointer to filename buffer that contains the null-terminated filename in file encoding.

buf_len [Input]

size of output filename buffer

Returns

FZRT_NOERR on success, Otherwise, an error ID. If result filename is too fzrt_int to fit in buffer, the result filename is truncated and an error is returned.

Availability

5.0.0.0

Function Set

fz_fzrt_file_fset

Defined in

fzrt_api.h