Source

linux-scalability-benchmarks / libowfat / fmt / fmt_plusminus.c

The default branch has multiple heads

1
2
3
4
5
6
7
8
9
#include "fmt.h"

size_t fmt_plusminus(char *dest,int i) {
  if (i) {
    if (dest) *dest=(i>=0?'+':'-');
    return 1;
  }
  return 0;
}