Help for this page

Select Code to Download


  1. or download this
    #include <stdlib.h>
    #include <limits.h>
    ...
        printf("execname: %s\n", execname);
        printf("realpath: %s\n", execpath);
    }
    
  2. or download this
     
    $ ./bar
    execname: bar
    realpath: /home/ck/myscripts/bar
    
  3. or download this
    $ ./bar
    execname: /home/ck/bin/foo
    realpath: /home/ck/bin/foo