Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo C - <b>parsfnm() parse file name</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
parsfnm()                Parse File Name

 #include   <dos.h>

 char        *parsfnm(cmdline,fcbptr,option);
 char        *cmdline;                   String to be parsed
 struct fcb  *fcbptr;                    Pointer to FCB
 int         option;                     AL value

    parsfnm() parses a string, usually a command line, pointed to by
    '*cmdline' for a file name.  The file name is placed in an FCB as a
    drive, file name, and extension.  The FCB is pointed to by 'fcbptr'.
    'option' is the value documented for AL in the DOS parse system call.

    Returns:    On success, a pointer to the next byte after the end of
                the file name.  If there is any error in parsing the file
                name, 0 is returned.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson