MCPcopy Create free account
hub / github.com/HelenOS/helenos / printf_putuchar

Function printf_putuchar

kernel/generic/src/printf/printf_core.c:187–193  ·  view source on GitHub ↗

Print one wide character. * * @param c Wide character to be printed. * @param ps Output method. * * @return Number of characters printed. * */

Source from the content-addressed store, hash-verified

185 *
186 */
187static int printf_putuchar(const char32_t ch, printf_spec_t *ps)
188{
189 if (!chr_check(ch))
190 return ps->str_write((void *) &invalch, 1, ps->data);
191
192 return ps->wstr_write(&ch, sizeof(char32_t), ps->data);
193}
194
195/** Print one formatted ASCII character.
196 *

Callers 1

print_wcharFunction · 0.70

Calls 1

chr_checkFunction · 0.50

Tested by

no test coverage detected