1scan_plusminus(3) Library Functions Manual scan_plusminus(3)
23
4
NAME
6scan_plusminus - parse '+' or '-'
7
SYNTAX
9#include <scan.h>
1011
size_t scan_plusminus(const char *src,int *dest);
12
DESCRIPTION
14scan_plusminus parses an ASCII '+' or '-' sign from src, sets dest 1 or
15-1, respectively, and returns 1.
1617
If neither is found, '+' is assumed and 0 is returned.
1819
20
21
scan_plusminus(3)