Plan 9 from Bell Labs’s /usr/web/sources/contrib/anothy/src/lib/djb-ape/byte/scan_plusminus.3

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


.TH scan_plusminus 3
.SH NAME
scan_plusminus \- parse '+' or '-'
.SH SYNTAX
.B #include <scan.h>

int \fBscan_plusminus\fP(const char *\fIsrc\fR,int *\fIdest\fR);
.SH DESCRIPTION
scan_plusminus parses an ASCII '+' or '-' sign from \fIsrc\fR, sets
\fIdest\fR 1 or -1, respectively, and returns 1.

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

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].