Extracts an integer token from in and updates the pointer to point to after the end of the integer token (sort of like strtol).
in
pointer to input string
the gint value