/*******************************************,*4************************** *P urpose: Display the name of the program. * To do: Strip any directory information away sothat we are left * with the file name only. * Author: M Leslie * Date: 09-Jan-95 ****************************°*,*%***************************************/ main(int argc, char *argv[]) { char *prog=argv[0]; /* prog_name points to its name location * as argv[0] */ printf("Program is called %s\n", prog); }