Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!bagate!cbmvax!cbmehq!cbmuk!cbmuka!lewism!lewism From: lewism@lewism.UUCP (Mike Lewis) Newsgroups: comp.sys.amiga.programmer Subject: Re: stcgfp() and stcgfn() - what do these routines do ? Message-ID: Date: 13 Mar 91 03:40:02 GMT References: <1991Mar12.121711.6840@abekrd.co.uk> <29033.27dcc2d9@kuhub.cc.ukans.edu> Lines: 36 >In article <29033.27dcc2d9@kuhub.cc.ukans.edu> markv@kuhub.cc.ukans.edu writes: >In article <1991Mar12.121711.6840@abekrd.co.uk>, koshy@abekrd.co.uk (Koshy Abraham) writes: >> I came across some code that uses these routines, but, unfortunately >> Aztec 'C' 5.0d don't have these in it's library. I had a look at my >> old Amiga 'C' manual and this didn't have it either so I would assume >> these are new additions to SAS Lattice 'C'. >> >> Can some kind soul send me any public domain copies of these routines >> or explain what they do. These have been in Lattice for quite a while now. #include size = stcgfe(ext,name) ; size = stcgfn(node,name) ; size = stcgfp(path,name); int size; size of result string char *ext; extension pointer area char *node; node area pointer char *path; path area pointer char *name; file name pointer These functions isolate the path, node or extension parts of a filename Name Path Node extension ---- ---- ---- --------- "/abc.dir/def.c" "abc.dir" "def" "c" Its on page L192 in my Lattice manual. I never used any of them!! +-------------------------------------------------------------------+ | Mike Lewis. cbmuk!cbmuka!lewism!lewism | | 40 Heyes Lane, Alderley Edge, Cheshire SK9 7JY, (UK) 0625 582762 | +-------------------------------------------------------------------+