Print one wide character. * * @param c Wide character to be printed. * @param ps Output method. * * @return Number of characters printed. * */
| 185 | * |
| 186 | */ |
| 187 | static 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 | * |
no test coverage detected