formZ SDK | 5.0 API Reference | Project | File Formats

fz_file_remove_ext

Description

Removes the file extension from a file name. Deletes the file extension from the end of a file name. This is done by finding the last occurrence of '.' in the string and setting that character to '\0'.

Plugin Prototype

fzrt_error_td fz_file_remove_ext(

char *

fname )

Parameters

fname [Input, Result]

The file name to remove the extension from.

Returns

FZRT_NOERR on success. An error otherwise.

Availability

5.0.0.0

Function Set

fz_ffmt_fset


Defined in

fz_ffmt_api.h