---
name: "strict_strtoll"
section: "9"
platform: "linux"
package: "linux-manual-2.6.32"
version: "2.6.32-48squeeze6"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/strict_strtoll"
---

# strict\_strtoll(9)

convert a string to a long long strictly

## NAME

strict\_strtoll - convert a string to a long long strictly

## SYNOPSIS

**int strict\_strtoll(const char \*** *cp***, unsigned int** *base***, long long \*** *res***);**

## ARGUMENTS

*cp*

The string to be converted

*base*

The number base to use

*res*

The converted result value

## DESCRIPTION

strict\_strtoll is similiar to strict\_strtoull, but it allows the first character of a string is '-'.

It returns 0 if conversion is successful and \*res is set to the converted value, otherwise it returns -EINVAL and \*res is set to 0.

## COPYRIGHT
