scan_plusminus man page

scan_plusminus — parse '+' or '-'

Syntax

#include <scan.h>

size_t scan_plusminus(const char *src,int *dest);

Description

scan_plusminus parses an ASCII '+' or '-' sign from src, sets dest 1 or -1, respectively, and returns 1.

If neither is found, '+' is assumed and 0 is returned.

Referenced By

fmt_minus(3), fmt_plusminus(3).