---
name: "scan_xshort"
section: "3diet"
platform: "linux"
package: "libowfat-dev"
version: "0.28-2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/scan_xshort/3diet"
---

# scan\_xshort(3diet)

parse an unsigned short integer in hexadecimal ASCII representation

## NAME

scan\_xshort - parse an unsigned short integer in hexadecimal ASCII representation

## SYNTAX

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

size\_t **scan\_xshort**(const char \**src*,unsigned short \**dest*);

## DESCRIPTION

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

scan\_xshort understands both upper and lower case letters.

scan\_xshort does not expect or understand a "0x" prefix.

## SEE ALSO

fmt\_xshort(3)
