Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <process.h>
    char *_cmdname( char *buffer );

Description:
    The _cmdname function obtains a copy of the executing program's pathname
    and places it in buffer.

Returns:
    If the pathname of the executing program cannot be determined then NULL
    is returned; otherwise the address of buffer is returned.

Example:
    #include <stdio.h>
    #include <process.h>

    void main()
      {
        char buffer[PATH_MAX];

        printf( "%s\n", _cmdname( buffer ) );
      }

Classification:
    WATCOM

Systems:
    All, Netware

See Also:
    getcmd

See Also: getcmd

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