Source

linux-scalability-benchmarks / libowfat / scan / scan_plusminus.c

The default branch has multiple heads

Full commit
#include "scan.h"

size_t scan_plusminus(const char *src,signed int *dest) {
  *dest=1;
  switch (*src) {
  case '-': *dest=-1;
  case '+': return 1; break;
  }
  return 0;
}