[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

SV: [FWP] What is regex



On Thu, 19 Jun 1999, Bill Jones wrote:

> So, instead of saying, say in C:
> if ((substr(data,0,4)) == "JAPH") {
>   /* Do stuff... */
> }

Oops, I forgot to "complain" about the C code! In C one would write;

if(!strncmp(data,"JAPH"),4)) {
	/* Do something */
}



==== Want to unsubscribe from this list? (Don't you love us anymore?)
==== Well, if you insist... Send mail with body "unsubscribe" to
==== fwp-request@technofile.org