The line `if (t_id_end != p_name)` checks whether the conversion succeeded, the return value of `MCStringToInteger()` should directly be used. However, it would be better to update to code to use an `MCNumberRef` and the function `MCNumberParse(MCStringRef, MCNumberRef)`, as `MCStringToInteger()` is part of foundation-legacy.h, and should I guess be avoided as much as possible.