Lines Matching refs:len

59 static void stdio_out_chars_no_crlf(stdio_driver_t *driver, const char *s, int len) {  in stdio_out_chars_no_crlf()  argument
60 driver->out_chars(s, len); in stdio_out_chars_no_crlf()
63 static void stdio_out_chars_crlf(stdio_driver_t *driver, const char *s, int len) { in stdio_out_chars_crlf() argument
66 driver->out_chars(s, len); in stdio_out_chars_crlf()
71 for (int i = 0; i < len; i++) { in stdio_out_chars_crlf()
81 if (first_of_chunk < len) { in stdio_out_chars_crlf()
82 driver->out_chars(&s[first_of_chunk], len - first_of_chunk); in stdio_out_chars_crlf()
84 if (len > 0) { in stdio_out_chars_crlf()
85 driver->last_ended_with_cr = s[len - 1] == '\r'; in stdio_out_chars_crlf()
88 driver->out_chars(s, len); in stdio_out_chars_crlf()
92 int stdio_put_string(const char *s, int len, bool newline, bool cr_translation) { in stdio_put_string() argument
99 if (len == -1) len = (int)strlen(s); in stdio_put_string()
104 out_func(driver, s, len); in stdio_put_string()
113 return len; in stdio_put_string()
116 int stdio_get_until(char *buf, int len, absolute_time_t until) { in stdio_get_until() argument
123 int read = driver->in_chars(buf, len); in stdio_get_until()
145 int len = (int)strlen(s); in stdio_puts_raw() local
146 stdio_put_string(s, len, true, false); in stdio_puts_raw()
148 return len; in stdio_puts_raw()
296 int len = stdio_get_until(buf, 1, at_the_end_of_time); in PRIMARY_STDIO_FUNC() local
297 if (len < 0) return len; in PRIMARY_STDIO_FUNC()
298 assert(len == 1); in PRIMARY_STDIO_FUNC()
309 int len = (int)strlen(s); in PRIMARY_STDIO_FUNC() local
310 stdio_put_string(s, len, true, true); in PRIMARY_STDIO_FUNC()
312 return len; in PRIMARY_STDIO_FUNC()