----- Original Message ----- 
From: "D. Kirker" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Sunday, April 04, 2004 7:33 PM
Subject: find offset of character in string


> How do I find the offset of a character (or string) in a string and return
> it as an int?
>


pend = StrChr( pbegin, c );
if ( pend != NULL  )
    return (pend - pbegin );
else
    return -1;



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to