Converts a string to a long integer, stopping at the first invalid character.
int atol(String str) { return strtol(str); }