c: removed custom htoi in favor of builtin strtol()