Home
last modified time | relevance | path

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

/picolibc-latest/newlib/libc/tinystdio/
Dfilestrputalloc.c41 struct __file_str *sstream = (struct __file_str *) stream; in __file_str_put_alloc() local
42 if (sstream->pos == sstream->end) { in __file_str_put_alloc()
43 size_t old_size = sstream->size; in __file_str_put_alloc()
44 char *old = sstream->end - old_size; in __file_str_put_alloc()
49 sstream->size = new_size; in __file_str_put_alloc()
50 sstream->pos = new + old_size; in __file_str_put_alloc()
51 sstream->end = new + new_size; in __file_str_put_alloc()
53 *sstream->pos++ = c; in __file_str_put_alloc()
Dfilewstrget.c41 struct __file_str *sstream = (struct __file_str *) stream; in __file_wstr_get() local
44 if (((sstream->pos - sstream->end) & (sizeof(wchar_t) - 1)) == 0) in __file_wstr_get()
47 memcpy(&c, sstream->pos, sizeof(wchar_t)); in __file_wstr_get()
51 rv = (unsigned char) *sstream->pos; in __file_wstr_get()
52 sstream->pos++; in __file_wstr_get()
Dfilestrput.c41 struct __file_str *sstream = (struct __file_str *) stream; in __file_str_put() local
49 if (sstream->pos != sstream->end) in __file_str_put()
50 *sstream->pos++ = c; in __file_str_put()
Dfilestrget.c41 struct __file_str *sstream = (struct __file_str *) stream; in __file_str_get() local
44 rv = (unsigned char) *sstream->pos; in __file_str_get()
47 sstream->pos++; in __file_str_get()