typedef function pointer and strtol