Re: Kat's 8bit sequences

new topic     » goto parent     » topic index » view thread      » older message » newer message

Jim Brown wrote:
> 
> Kat wrote:
> > There's no equivalent to Eu's
> > match() for the C strings (i do see several char search functions tho)?
> > 
> > Kat
> 
> strstr() is C's version of match() for C strings. Bernie's mixedlib.e probably
> implements this as well.

No, it's not there. I did find it first in Igor's version of w32engine, which is
Bernie's with extra 400K of stuff, so i looked in Bernie's w2engine, and found
the stuff below....

> (For the C version, if you want an index instead of a pointer, do
> "strstr(haystack,needle)-haystack;".)

w32engine has this stuff, among tons of other stuff...
Def &= {{0,"StrStrA",11,{pointer_,pointer_},pointer_}}
global function StrStrA(object p) return f_(1816,p) end function
Def &= {{0,"StrStrIA",11,{pointer_,pointer_},pointer_}}
global function StrStrIA(object p) return f_(1817,p) end function
Def &= {{0,"StrStrIW",11,{pointer_,pointer_},pointer_}}
global function StrStrIW(object p) return f_(1818,p) end function
Def &= {{0,"StrStrW",11,{pointer_,pointer_},pointer_}}
global function StrStrW(object p) return f_(1819,p) end function

So,, you are going to tell me to google it all, right?

Kat

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu