LexLeo 0.0.0-dev+f8e5087-dirty
Technical documentation
Loading...
Searching...
No Matches
osal_stdio_ops.h
Go to the documentation of this file.
1#ifndef LEXLEO_OSAL_STDIO_OPS_H
2#define LEXLEO_OSAL_STDIO_OPS_H
3
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
11
12typedef struct osal_stdio_ops_t {
13
14 OSAL_STDIO *(*stdin)(void);
15
16 OSAL_STDIO *(*stdout)(void);
17
18 OSAL_STDIO *(*stderr)(void);
19
20 size_t (*read)(
21 void *ptr,
22 size_t size,
23 size_t nmemb,
24 OSAL_STDIO *stdio);
25
26 size_t (*write)(
27 const void *ptr,
28 size_t size,
29 size_t nmemb,
30 OSAL_STDIO *stdio);
31
32 int (*flush)(OSAL_STDIO *stdio);
33
34 int (*error)(OSAL_STDIO *stdio);
35
36 int (*eof)(OSAL_STDIO *stdio);
37
38 void (*clearerr)(OSAL_STDIO *stdio);
39
41
43
44#ifdef __cplusplus
45}
46#endif
47
48#endif // LEXLEO_OSAL_STDIO_OPS_H
const osal_stdio_ops_t * osal_stdio_default_ops(void)
Definition osal_stdio.c:79
int(* eof)(OSAL_STDIO *stdio)
void(* clearerr)(OSAL_STDIO *stdio)
size_t(* write)(const void *ptr, size_t size, size_t nmemb, OSAL_STDIO *stdio)
int(* error)(OSAL_STDIO *stdio)
size_t(* read)(void *ptr, size_t size, size_t nmemb, OSAL_STDIO *stdio)
int(* flush)(OSAL_STDIO *stdio)