On 9/14/07, Camilo III Lozano <[EMAIL PROTECTED]> wrote:
> how can i rip off in C the non integer charaters?
>
> ===============================
>
> int main()
> {
> char *messy = ":428:";
> int cleaned = 0;
>
> //some removing syntax for the non integer chars
>
>
> cleaned = (int)(messy);
> return 0;
> }
>
> ===============================
>
> anybody can help? thanks...
>
> --
you can check if a character is a decimal digit character using isdigit()...
however, "removing" it from the string is not that straightforward. read
about strings and arrays.
--
There are seven words in this sentence.
_________________________________________________
Kagay-Anon Linux Users' Group (KLUG) Mailing List
[email protected] (http://cdo.linux.org.ph)
Searchable Archives: http://archives.free.net.ph