Lines Matching refs:val
287 int LI_ltostr(char *buf, long val) { in LI_ltostr() argument
292 if (val < 0) { in LI_ltostr()
295 val = -val; in LI_ltostr()
299 while (val > 9) { in LI_ltostr()
300 *(end++) = '0' + (val % 10); in LI_ltostr()
301 val = val / 10; in LI_ltostr()
303 *(end) = '0' + val; in LI_ltostr()
319 int buffer_append_long(buffer *b, long val) { in buffer_append_long() argument
326 b->used += LI_ltostr(b->ptr + (b->used - 1), val); in buffer_append_long()
330 int buffer_copy_long(buffer *b, long val) { in buffer_copy_long() argument
334 return buffer_append_long(b, val); in buffer_copy_long()
338 int buffer_append_off_t(buffer *b, off_t val) { in buffer_append_off_t() argument
351 if (val < 0) { in buffer_append_off_t()
354 val = -val; in buffer_append_off_t()
358 while (val > 9) { in buffer_append_off_t()
359 *(end++) = '0' + (val % 10); in buffer_append_off_t()
360 val = val / 10; in buffer_append_off_t()
362 *(end) = '0' + val; in buffer_append_off_t()
379 int buffer_copy_off_t(buffer *b, off_t val) { in buffer_copy_off_t() argument
383 return buffer_append_off_t(b, val); in buffer_copy_off_t()