2001-02-02 17:54:47 +00:00
|
|
|
#include "stralloc.h"
|
|
|
|
#include "fmt.h"
|
|
|
|
|
2006-11-07 17:56:05 +00:00
|
|
|
int stralloc_catulong0(stralloc *sa,unsigned long int in,size_t n) {
|
2001-02-02 17:54:47 +00:00
|
|
|
if (stralloc_readyplus(sa,fmt_ulong0(0,in,n))) {
|
|
|
|
sa->len+=fmt_ulong0(sa->s+sa->len,in,n);
|
|
|
|
return 1;
|
|
|
|
} else
|
|
|
|
return 0;
|
|
|
|
}
|