|
From: KrowniX \(\)--\(\) <kr...@ya...> - 2006-05-09 19:34:38
|
Hi ... Hey..today I got some other problem that you may help-me...I am working to use the response of the ping command to do some operations....for example: Resposta de 10.0.0.1: bytes=32 tempo=49ms TTL=250 Resposta de 10.0.0.1: bytes=32 tempo=48ms TTL=250 Resposta de 10.0.0.1: bytes=32 tempo=48ms TTL=250 Resposta de 10.0.0.1: bytes=32 tempo=49ms TTL=250 I already know the function strtok() in string.h that allowed you to cut the file as you want...and i don´t have problems to separate the "tempo=49ms" from the rest of the file..so..that´s my question.. the strtok() function returns a char*, and I need to use that number "49" to make some basics operations like > < .;...really simple.. but I am not been able to do the conversion of char* to int... Does anyone know how do I do this?? Thanks....and if I found out I´ll post it here.. Krownix --------------------------------- Abra sua conta no Yahoo! Mail - 1GB de espaço, alertas de e-mail no celular e anti-spam realmente eficaz. |