Page is a not externally linkable
- Code, Content, and Presentation
-- Perl Server Side CGI Scripting
---- string to int


camilord - 2:04 pm on Sep 14, 2007 (gmt 0)


i don't know where to post.. but it seems C in linux is similar to perl.. :)

anyway, my question is..

how can i rid off the colon (:) so that i can convert into integer.

sample...

=============

int main()
{
char tmp = ":212:";
int mutated = 0;

//mutated = (int)(tmp); //converting to int...
//operation goes here...
}

===============

how can i remove the colons so that i can convert it into integers...

[edited by: coopster at 6:22 pm (utc) on Sep. 17, 2007]
[edit reason] Disable graphic smile faces [/edit]


Thread source:: http://www.webmasterworld.com/perl/3450702.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com