From: "Duncan Burch" Newsgroups: comp.os.msdos.djgpp Subject: Re: HELP building EGCS for DJGPP Date: Sun, 27 Sep 1998 21:51:49 +0100 Organization: Cable Online Lines: 11 Message-ID: <6um8cb$h8n$1@nclient5-gui.server.ntli.net> References: NNTP-Posting-Host: 194.168.20.8 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk sl AT psycode DOT com DOT REMOVE_THIS wrote in message ... >Hi, > > I'm trying to build EGCS (and then PGCC) for DJGPP .. Problem is I >have no idea how this is done =) >The package uses longnames, but dos obviously does not see them .. but edit djgpp.env, setting lfn=y (to enable long filenames) s. > >It's just fine if you know what it does. > It's a perfectly useful function, but it's probably not the best thing to use in this case as it's acually meant for parsing files. Try using strstr(rindex(string, '.'), ".exe") if you just want to do something on a one off basis.