scan_plusminus(3diet)

scan_plusminus3diet

Parse '+' or '-'

Usage

#include <scan.h>

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

Overview

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.

Releases

4 releases since Debian 3.1 (Sarge); the text changed 1 time.

  1. 3.1–4.0
  2. 5.0–6.0

From libowfat-dev 0.28-2 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.