Пример #1
0
void li2a(long num, char *bf)
{
    if (num < 0) {
        num = -num;
        *bf++ = '-';
    }
    uli2a(num, 10, 0, bf);
}
Пример #2
0
static void li2a(long num, struct param *p)
{
    if(num < 0)
	{
	    num = -num;
	    p->sign = '-';
	}
    uli2a(num, p);
}