libowfat/fmt/fmt_plusminus.c

10 lines
144 B
C

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