Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

11 lines
194 B

  1. #include "scan.h"
  2. size_t scan_plusminus(const char *src,signed int *dest) {
  3. *dest=1;
  4. switch (*src) {
  5. case '-': *dest=-1; /* fall through */
  6. case '+': return 1; break;
  7. }
  8. return 0;
  9. }