Lines Matching refs:endsp
106 char *sp, *ssp, *endsp, *ep, *endep;
231 endsp = sp = buf+(sizeof(buf)-1);
1102 if(n_s < 0 && (flags&SFFMT_THOUSAND) && (n = endsp-sp) > 3)
1108 if(sp == endsp)
1110 if(sp <= endsp-3)
1115 endsp = ep;
1119 if(precis > 0 && (precis -= (endsp-sp)) < (sp-buf)-64)
1138 n = width - (n + (endsp-sp));
1202 sp = endsp = buf+1; /* reserve space for sign */
1203 *endsp++ = '0';
1204 *endsp++ = fmt == 'a' ? 'x' : 'X';
1246 sp = endsp = buf+1; /* reserve space for sign */
1250 *endsp++ = *ep ? *ep++ : '0';
1254 *endsp++ = decimal;
1255 ssp = endsp;
1257 while((*endsp++ = *ep++) && ep <= endep)
1259 precis -= (endsp -= 1) - ssp;
1288 endsp = (sp = ep)+sfslen();
1295 endsp = sp = buf+1; /* save a space for sign */
1300 while(ep < endep && (*endsp++ = *ep++) )
1302 { *endsp++ = thousand;
1308 { while(ep < endep && (*endsp++ = *ep++))
1311 if(endsp == sp)
1312 *endsp++ = '0';
1315 *endsp++ = decimal;
1319 ssp = endsp + min(n,precis);
1321 while(endsp < ssp)
1322 *endsp++ = '0';
1325 ssp = endsp;
1327 while((*endsp++ = *ep++) && ep <= endep)
1329 precis -= (endsp -= 1) - ssp;
1344 n = (endsp-sp) + (endep-ep) + (precis <= 0 ? 0 : precis) +
1375 if((n = endsp-sp) > 0)