I think the last one will only give you a 0 value....

naa 2 built in... better find that one...


On 9/15/07, Arthur Vincent Simon <[EMAIL PROTECTED]> wrote:
>
> i think there is a already a built in functino in C for checking if a
> character is an integer....i forgot what it was but its better if you use it
>
> btw, I think this line of code
>
>   cleaned = (int)(messy);
>
> only converts the pointer into an int??....at least that is what I think
>
>  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...
> >
> > --
> > --------------------
> > http://www.metacatalyst.com
> > http://www.metacatalyst.org
> > http://www.zabyer.org
> >
> > Got my Own Hacker Key:
> > v3sw3BHhw5ln2pr5OFPck3ma2u4MLw5XVm+5l5UCi5Ne4t3b5en5g5RaIs5MSr3p2
> > http://www.hackerkey.com
> >
> > Registered Linux User: #439468
> >
> > _________________________________________________
> > Kagay-Anon Linux Users' Group (KLUG) Mailing List
> > [email protected] (http://cdo.linux.org.ph)
> > Searchable Archives: http://archives.free.net.ph
> >
>
>
>
> --
> The best things in life are free.
> First make it run,then make it right, then make it fast.
> homepage: arvin.110mb.com
> _________________________________________________
> Kagay-Anon Linux Users' Group (KLUG) Mailing List
> [email protected] (http://cdo.linux.org.ph)
> Searchable Archives: http://archives.free.net.ph
>



-- 
Ace Mark Gella
National Computer Center (Phils) -
Programming Certified

C# Programmer, Phil-AM OSI
Mandaue City
_________________________________________________
Kagay-Anon Linux Users' Group (KLUG) Mailing List
[email protected] (http://cdo.linux.org.ph)
Searchable Archives: http://archives.free.net.ph

Reply via email to