Command Prompt for Windows




getfilename, _wgetfilename, _tgetfilename

char *getfilename(int index);
wchar_t *_wgetfilename(int index);
TCHAR *_tgetfilename(int index);

Retrieve a file name from the File Table.

Parameter Description
index Specifies which file name to retrieve from the File Table. Entries in the File Table start from an index of 0.

Returns

On success it returns the address of a NULL terminated string containing the file name. On error it returns a NULL.

Comments

Use the fillfile() to fill the File Table before using getfilename().

File names are stored in a static buffer and is over-written each time this function is called.

See Also

fillfile, getfile, getfilepath