XROAD
xroad_format.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include "xroad_common_types.h"
9 #include "xroad_string.h"
10 #include <stdint.h>
11 #include <stdarg.h>
12 
13 #ifdef __cplusplus
14 extern "C"
15 {
16 #endif
17 
49 int32_t xroad_format(char* buf, uint32_t len, const char* fmt, ...);
50 
52 int32_t xroad_xformat(char* buf, uint32_t len, xroad_str_t fmt, ...);
53 
57 int32_t xroad_vformat(char* buf, uint32_t len, const char* fmt, va_list ap);
58 
60 int32_t xroad_vxformat(char* buf, uint32_t len, xroad_str_t fmt, va_list ap);
61 
62 #ifdef __cplusplus
63 }
64 #endif
Definition: xroad_string.h:29
int32_t xroad_vformat(char *buf, uint32_t len, const char *fmt, va_list ap)
int32_t xroad_xformat(char *buf, uint32_t len, xroad_str_t fmt,...)
The same as above but accepting format as xroad_str_t.
int32_t xroad_format(char *buf, uint32_t len, const char *fmt,...)
int32_t xroad_vxformat(char *buf, uint32_t len, xroad_str_t fmt, va_list ap)
The same as above but accepting format as xroad_str_t.