Home
last modified time | relevance | path

Searched refs:leastlen (Results 1 – 1 of 1) sorted by relevance

/l4re-core-master/uclibc/lib/contrib/uclibc/libc/stdio/
A Dopen_memstream.c73 size_t leastlen; in oms_seek() local
90 leastlen = ((size_t) p) + 1; /* New pos + 1 for nul if necessary. */ in oms_seek()
92 if (leastlen >= COOKIE->len) { /* Need to grow buffer... */ in oms_seek()
93 buf = realloc(COOKIE->buf, leastlen); in oms_seek()
96 COOKIE->len = leastlen; in oms_seek()
97 memset(buf + COOKIE->eof, 0, leastlen - COOKIE->eof); /* 0-fill */ in oms_seek()
104 *pos = COOKIE->pos = --leastlen; in oms_seek()
106 if (leastlen > COOKIE->eof) { in oms_seek()
107 memset(COOKIE->buf + COOKIE->eof, 0, leastlen - COOKIE->eof); in oms_seek()

Completed in 5 milliseconds