logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

scan_plusminus - parse '+' or '-'

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.

                                                                                               scan_plusminus(3)

Name

       scan_plusminus - parse '+' or '-'

Syntax

#include<libowfat/scan.h>

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

See Also