Either make `result` an `int`, or use `strtoll()`.