Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!kuhub.cc.ukans.edu!markv From: markv@kuhub.cc.ukans.edu Newsgroups: comp.sys.amiga.programmer Subject: Re: stcgfp() and stcgfn() - what do these routines do ? Message-ID: <29033.27dcc2d9@kuhub.cc.ukans.edu> Date: 12 Mar 91 18:00:25 GMT References: <1991Mar12.121711.6840@abekrd.co.uk> Organization: University of Kansas Academic Computing Services Lines: 32 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. First, you should not leave important info only in the header line, since not all mailers and mail editors provide the subject line. Both these functions are for manipulating filenames. The stcgfn() gives the "node" part of the file name, the stcgfp() gives the path part. Ie: full name DH0:foo/foo2/foo.ext Path=DH0:foo/foo2 Node=foo.ext SAS/Lattice have several functions for building up and picking apart filenames and wildcards that are very useful. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mark Gooderum Only... \ Good Cheer !!! Academic Computing Services /// \___________________________ University of Kansas /// /| __ _ Bix: mgooderum \\\ /// /__| |\/| | | _ /_\ makes it Bitnet: MARKV@UKANVAX \/\/ / | | | | |__| / \ possible... Internet: markv@kuhub.cc.ukans.edu ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~