libowfat/fmt/fmt_plusminus.c

10 lines
138 B
C

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