http://qs321.pair.com?node_id=102329


in reply to Translate Perl to C

If you are asking for equivilent meaning in a C program, check out strtok for the first, then use strncmp to verify the beginning of the string on the second line, and atoi to convert the number (no need to copy it out, just point it at the first digit).

—John