libc: minimal: add putchar
Provide putc and putchar wrappers around fputc. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
8f682bf9ef
commit
98747abf9c
1 changed files with 8 additions and 0 deletions
|
@ -56,6 +56,14 @@ int fputc(int c, FILE *stream);
|
||||||
int fputs(const char *_MLIBC_RESTRICT s, FILE *_MLIBC_RESTRICT stream);
|
int fputs(const char *_MLIBC_RESTRICT s, FILE *_MLIBC_RESTRICT stream);
|
||||||
size_t fwrite(const void *_MLIBC_RESTRICT ptr, size_t size, size_t nitems,
|
size_t fwrite(const void *_MLIBC_RESTRICT ptr, size_t size, size_t nitems,
|
||||||
FILE *_MLIBC_RESTRICT stream);
|
FILE *_MLIBC_RESTRICT stream);
|
||||||
|
static inline int putc(int c, FILE *stream)
|
||||||
|
{
|
||||||
|
return fputc(c, stream);
|
||||||
|
}
|
||||||
|
static inline int putchar(int c)
|
||||||
|
{
|
||||||
|
return putc(c, stdout);
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue