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.

14 lines
369 B

22 years ago
#include "stralloc.h"
#include "fmt.h"
int stralloc_catlong0(stralloc *sa,signed long int in,size_t n) {
int neg=-(in<0);
if (neg) in=-in;
if (stralloc_readyplus(sa,fmt_minus(0,neg)+fmt_ulong0(0,(unsigned long)in,n))) {
sa->len+=fmt_ulong0(sa->s+sa->len,(unsigned long)in,n);
22 years ago
return 1;
} else
return 0;