Contents of argv[0]

John Hascall hascall at atanasoff.cs.iastate.edu
Fri Aug 18 00:20:14 AEST 1989


In article <1705> davidsen at crdos1.UUCP (bill davidsen) writes:
}In article <2364> bob at wyse.UUCP (Bob McGowen Wyse Technology Training) writes:
 
}	const char *basename(const char *path)
 
	   I like it!

}Example, a typical VMS filename:
}	CAOVAX::Dra0:[mimsey.bin.special]zoo.exe;4
}                                         ^^^^^^^
}                                That's the filename!

      Uh, sorry.  "zoo" is the filename, "exe" is the filetype.

John Hascall



More information about the Comp.lang.c mailing list