www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/26/16:35:22

Message-Id: <360D5031.531F@cableol.co.uk>
Date: Sat, 26 Sep 1998 21:36:01 +0100
From: Allens <allen DOT asjp AT cableol DOT co DOT uk>
Mime-Version: 1.0
To: Jorge Ivan Meza Martinez <jimeza AT usa DOT net>
Cc: djgpp AT delorie DOT com
Subject: Re: endsWith into StrClass ?
References: <000301bde974$3763afc0$44f703cc AT enterprise-z>

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019