Lines Matching refs:size
131 fprintf(stderr, _("%s: size overflow\n"), progname);
151 /* Return the size of of the string STR, including its trailing NUL.
163 /* Return a pointer to a newly allocated buffer of size SIZE, exiting
166 xmalloc(ptrdiff_t size)
168 void *p = malloc(size);
417 saved, use *BUF (of size *BUFALLOC) to save it, and return the
936 my_snprintf(char *s, size_t size, char const *format, ...)
956 slen = arglen < size ? arglen : size - 1;
965 /* Store into BUF, of size SIZE, a formatted local time taken from *TM.
973 format_local_time(char *buf, ptrdiff_t size, struct tm const *tm)
977 ? my_snprintf(buf, size, "%02d:%02d:%02d", hh, mm, ss)
979 ? my_snprintf(buf, size, "%02d:%02d", hh, mm)
980 : my_snprintf(buf, size, "%02d", hh));
983 /* Store into BUF, of size SIZE, a formatted UT offset for the
996 format_utc_offset(char *buf, ptrdiff_t size, struct tm const *tm, time_t t)
1015 ? my_snprintf(buf, size, "%c%02ld%02d%02d", sign, hh, mm, ss)
1017 ? my_snprintf(buf, size, "%c%02ld%02d", sign, hh, mm)
1018 : my_snprintf(buf, size, "%c%02ld", sign, hh));
1021 /* Store into BUF (of size SIZE) a quoted string representation of P.
1026 format_quoted_string(char *buf, ptrdiff_t size, char const *p)
1029 ptrdiff_t s = size;
1031 return size;
1036 return size;
1039 case '\0': *b++ = '"', s--; return size - s;
1052 /* Store into BUF (of size SIZE) a timestamp formatted by TIME_FMT.
1067 istrftime(char *buf, ptrdiff_t size, char const *time_fmt,
1071 ptrdiff_t s = size;
1153 ptrdiff_t size = sizeof stackbuf;
1156 while (! istrftime(buf, size, time_fmt, tm, t, ab, zone_name)) {
1157 size = sumsize(size, size);
1159 buf = bufalloc = xmalloc(size);
1190 format when distinct types have the same size. */