Path: utzoo!attcan!utgpu!watmath!iuvax!mailrus!sharkey!atanasoff!hascall From: hascall@atanasoff.cs.iastate.edu (John Hascall) Newsgroups: comp.lang.c Subject: Re: Contents of argv[0] Keywords: start-up code, argv specifications Message-ID: <1342@atanasoff.cs.iastate.edu> Date: 17 Aug 89 14:20:14 GMT References: <9002@attctc.Dallas.TX.US> <1681@crdgw1.crd.ge.com> <2364@wyse.wyse.com> <1705@crdgw1.crd.ge.com> Reply-To: hascall@atanasoff.cs.iastate.edu.UUCP (John Hascall) Organization: Iowa State Univ. Computation Center Lines: 15 In article <1705> davidsen@crdos1.UUCP (bill davidsen) writes: }In article <2364> bob@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