-
Notifications
You must be signed in to change notification settings - Fork 1
/
my_vsprintf.h
27 lines (21 loc) · 970 Bytes
/
my_vsprintf.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef MY_VSPRINTF_H_INCLUDED
#define MY_VSPRINTF_H_INCLUDED
#ifdef __cplusplus
extern "C" {
#endif
struct lua_State;
unsigned long simple_strtoul(const char *cp,char **endp,unsigned int base);
long simple_strtol(const char *cp,char **endp,unsigned int base);
unsigned long long simple_strtoull(const char *cp,char **endp,unsigned int base);
long long simple_strtoll(const char *cp,char **endp,unsigned int base);
int my_vsnprintf(char *buf, size_t size, const char *fmt, va_list args);
int my_vsnprintf_lua(char *buf, size_t size, const char *fmt, lua_State *L, int st_idx);
int my_vscnprintf(char *buf, size_t size, const char *fmt, va_list args);
int my_snprintf(char * buf, size_t size, const char *fmt, ...);
int my_scnprintf(char * buf, size_t size, const char *fmt, ...);
int my_vsprintf(char *buf, const char *fmt, va_list args);
int my_sprintf(char * buf, const char *fmt, ...);
#ifdef __cplusplus
} // extern "C:
#endif
#endif // MY_VSPRINTF_H_INCLUDED