---
name: "scan_int"
section: "3"
platform: "linux"
package: "libowfat-dev"
version: "0.32-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/scan_int"
---

# scan\_int(3)

parse an integer in decimal ASCII representation

## NAME

scan\_int - parse an integer in decimal ASCII representation

## SYNTAX

**#include \<libowfat/scan.h\>**

size\_t **scan\_int**(const char \**src*,int \**dest*);

## DESCRIPTION

scan\_int parses an integer in decimal ASCII representation from *src* and writes the result into *dest*. It returns the number of bytes read from *src*.

## SEE ALSO

[scan\_long(3)](/scan_long/3.md), [scan\_xint(3)](/scan_xint/3.md), [scan\_8int(3)](/scan_8int/3.md), fmt\_int(3)
