Presuming "buffer" contains the string, and you don't mind writing over the
string's contents this is the easiest way:

*StrStr(buffer, "-") = 0;

Regards,

Alan Ingleby
Systems Developer
ProfitLink Consulting Pty Ltd
309 Burwood Road
Hawthorn
Victoria 3122
Australia

"Nicolas Raitman" <[EMAIL PROTECTED]> wrote in message
news:37609@palm-dev-forum...
>
> Hi to all.
> Suppose I have the following string:
> "1112-Hello"
> "11-How"
> "474983-are"
>
> What I want to do is to get only the numbers, how can I do this? Which
> functions should I use?
> Thanks,
> Nicolas
>
>
>



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

Reply via email to