3 int stralloc_catulong0(stralloc
*sa
,unsigned long u
,unsigned int n
)
11 while (q
> 9) { ++len
; q
/= 10; }
14 if (!stralloc_readyplus(sa
,len
)) return 0;
17 while (len
) { s
[--len
] = '0' + (u
% 10); u
/= 10; }
22 int stralloc_catlong0(stralloc
*sa
,long l
,unsigned int n
)
25 if (!stralloc_append(sa
,"-")) return 0;
28 return stralloc_catulong0(sa
,l
,n
);