Command Prompt for Windows




padfilename, _wpadfilename, _tpadfilename

char *padfilename(char *path);
wchar_t *_wpadfilename(wchar_t *path);
TCHAR *_tpadfilename(TCHAR *path);

Pad a file name so that it is suitable for displaying.

Parameter Description
path Address of a NULL terminated character string contain a path name.

Returns

The address of a character string containing the padded file name.

Comments

Only the file name is padded and returned, the rest of the path is discarded.

The padded file name is stored in a static buffer and is over-written each time this function is called.