6 int split_ip( char *text
, u8b
*dest
, int place
)
10 /* Don't touch this, unless you like pointer aritmethic */
17 for( dotcount
= 0; (dotcount
< place
) && ( text
); text
++ )
24 while(( *text
!= '.' ) && ( *text
!= '\0' ))
27 *dest
+= (u8b
)(*text
-48);
28 /* 48 is not a hack, is just the code of 0 */
35 int get_ip( char *text
, u32b
*dest
)
37 /* Don't touch this, unless you like pointer aritmethic */
44 while( *text
!= '\0' )
53 *dest
+= (u8b
)(*text
-48);
54 /* 48 is not a hack, is just the code of 0 */