RTI Connext DDS Micro
Version 2.4.11
Main Page
Related Pages
Manuals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
osapi_stdio.h
Go to the documentation of this file.
1
/*
2
* FILE: osapi_stdio.h - Definition of semaphore interface
3
*
4
* Copyright 2012-2015 Real-Time Innovations, Inc.
5
*
6
* No duplications, whole or partial, manual or electronic, may be made
7
* without express written permission. Any such copies, or
8
* revisions thereof, must display this notice unaltered.
9
* This code contains trade secrets of Real-Time Innovations, Inc.
10
*
11
* Modification History
12
* --------------------
13
* 12mar2012,tk Written
14
*/
15
/*e \file
16
* \brief Standard I/O interface definition
17
*/
18
#ifndef osapi_stdio_h
19
#define osapi_stdio_h
20
21
#ifndef osapi_dll_h
22
#include "osapi/osapi_dll.h"
23
#endif
24
25
#if defined(__ANDROID__)
26
#include <android/log.h>
27
#endif
28
29
#ifndef osapi_types_h
30
#include "
osapi/osapi_types.h
"
31
#endif
32
33
#ifdef __cplusplus
34
extern
"C"
35
{
36
#endif
37
38
#if 0
39
/*e \file
40
* \brief I/O utilities.
41
*/
42
43
/* \defgroup OSAPI_StdioClass OSAPI Standard I/O
44
* \ingroup OSAPIModule
45
*
46
* \brief OS-independent standard I/O utilities.
47
*/
48
49
/*e \ingroup OSAPI_StdioClass
50
* \brief Print string to standard output.
51
*
52
* \details
53
* Prints the ASCIIZ string to stdout.
54
*
55
* \param[in] string - ASCIIZ string to print
56
*
57
* @exception None.
58
*/
59
OSAPIDllExport
void
60
OSAPI_Stdio_puts(
const
char
*
string
);
61
62
/*e \ingroup OSAPI_StdioClass
63
* \brief Print formatted string to standard output.
64
*
65
* \details
66
* Output a formatted string to standard output. Only the following modifiers
67
* are supported: s,c,h,d,u,x,X,p,l
68
*
69
* \param[in] format - ASCIIZ format string to print
70
* \param[in] ... - Optional arguments to format string
71
*
72
* @exception None.
73
*
74
*/
75
OSAPIDllExport
void
76
OSAPI_Stdio_printf(
const
char
*format,...);
77
78
/*e \ingroup OSAPI_StdioClass
79
*
80
* \brief Print formatted string to the provided buffer
81
*
82
* \details
83
* Output a formatted string to standard output. Only the following modifiers
84
* are supported: s,c,h,d,u,x,X,p,l. The number of bytes that would have been
85
* written are returned. Thus, if a value >= n is returned buffer was too small
86
* to hold the formatted string.
87
*
88
* \param[in] buffer - buffer to hold resulting string
89
* \param[in] n - Maximum number of bytes in buffer
90
* \param[in] format - ASCIIZ format string to print
91
* \param[in] ... - Optional arguments to format string
92
*
93
* @exception None.
94
*/
95
OSAPIDllExport RTI_INT32
96
OSAPI_Stdio_snprintf(
char
*buffer, RTI_SIZE_T n,
const
char
*format,...);
97
98
99
/*e \ingroup OSAPI_StdioClass
100
*
101
* \brief Print formatted string to the provided buffer
102
*
103
* \details
104
* Output a formatted string to standard output. Only the following modifiers
105
* are supported: s,c,h,d,u,x,X,p,l. The number of bytes that would have been
106
* written are returned. Thus, if a value >= n is returned buffer was too small
107
* to hold the formatted string.
108
*
109
* \param[in] s - buffer to hold resulting string
110
* \param[in] n - Maximum number of bytes in buffer
111
* \param[in] format - ASCIIZ format string to print
112
* \param[in] ap - Optional arguments to format string
113
*
114
* @exception None.
115
*/
116
OSAPIDllExport RTI_INT32
117
OSAPI_Stdio_vsnprintf(
char
*s, RTI_SIZE_T n,
const
char
*format,va_list ap);
118
119
#endif
120
121
#ifdef __cplusplus
122
}
123
#endif
124
125
#endif
/* osapi_stdio_h */
RTI Connext DDS Micro Version 2.4.11
Copyright © Mon Jul 23 2018
Real-Time Innovations, Inc