1 /*
2  * reimplementation of Daniel Bernstein's byte library.
3  * placed in the public domain by Uwe Ohse, uwe@ohse.de.
4  */
5 #include "scan.h"
6 
7 unsigned int
scan_plusminus(const char * str,int * sign)8 scan_plusminus (const char *str, int *sign)
9 {
10 	if (*str == '-') {
11 		*sign = -1;
12 		return 1;
13 	}
14 	*sign = 1;
15 	return (*str == '+');
16 }
17