Message-Id: <360D5031.531F@cableol.co.uk> Date: Sat, 26 Sep 1998 21:36:01 +0100 From: Allens Mime-Version: 1.0 To: Jorge Ivan Meza Martinez Cc: djgpp AT delorie DOT com Subject: Re: endsWith into StrClass ? References: <000301bde974$3763afc0$44f703cc AT enterprise-z> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk Jorge Ivan Meza Martinez wrote: > > Hi, > > has StrClass an 'endsWith' method ? > > I need a method that tells me with a boolean if a string ends with another > string; > I need it to see if a filename has the extension that I require. > > thanks, > > Jorge Ivan Meza Martinez > jimeza AT usa DOT net > jimezam AT armenia DOT multi DOT net DOT co > jimeza.home.ml.org strtok looks for a string in a string (It might be a character in a string, I can't remember, so strtok(string1,".exe") will see if the string contains .exe in it. Peter Allen