Changeset c7c6afd in mainline for common/include/printf_core.h


Ignore:
Timestamp:
2025-04-13T23:27:44Z (4 weeks ago)
Author:
GitHub <noreply@…>
Children:
b6061f8c
Parents:
240b2e4 (diff), f5e1692 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Wayne Thornton <wmthornton-dev@…> (2025-04-13 23:27:44)
git-committer:
GitHub <noreply@…> (2025-04-13 23:27:44)
Message:

Merge branch 'HelenOS:master' into master

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/include/printf_core.h

    r240b2e4 rc7c6afd  
    3636#define _LIBC_PRINTF_CORE_H_
    3737
     38#include <errno.h>
     39#include <stdarg.h>
    3840#include <stddef.h>
    39 #include <stdarg.h>
    4041#include <uchar.h>
    4142
    4243/** Structure for specifying output methods for different printf clones. */
    4344typedef struct {
    44         /* String output function, returns number of printed characters or EOF */
    45         int (*str_write)(const char *, size_t, void *);
    46 
    47         /* Wide string output function, returns number of printed characters or EOF */
    48         int (*wstr_write)(const char32_t *, size_t, void *);
     45        /*
     46         * String output function, returns EOK on success.
     47         * Only returns an error when an irrecoverable failure occurs and
     48         * the string cannot be fully output.
     49         */
     50        errno_t (*write)(const char *, size_t, void *);
    4951
    5052        /* User data - output stream specification, state, locks, etc. */
Note: See TracChangeset for help on using the changeset viewer.