mirror of
https://github.com/reactos/reactos.git
synced 2025-06-26 12:29:44 +00:00

- Leave and refactor existing underlying linux-code based sprintf implementation into lnx_ prefixed functions. - Misc source code and headers cleanup. - Fixes bugs 2910, 2803. See issue #2803 for more details. svn path=/trunk/; revision=33927
22 lines
759 B
C
22 lines
759 B
C
#ifndef _CRT_PRINTF_H
|
|
#define _CRT_PRINTF_H
|
|
|
|
|
|
/* Implementation of a printf appropriated from Linux kernel */
|
|
|
|
int lnx_sprintf(char *str, const char *fmt, ...);
|
|
int lnx__vsprintf(char *str, const char *fmt, va_list ap);
|
|
int lnx__vswprintf(wchar_t *str, const wchar_t *fmt, va_list ap);
|
|
int lnx__vsnprintf(char *str, size_t maxlen, const char *fmt, va_list ap);
|
|
int lnx__vsnwprintf(wchar_t *str, size_t maxlen, const char *fmt, va_list ap);
|
|
int lnx_vfprintf(FILE* f, const char* fmt, va_list ap);
|
|
int lnx_vfwprintf(FILE *f, const wchar_t *fmt, va_list ap);
|
|
#ifdef _UNICODE
|
|
#define lnx_vftprintf lnx_vfwprintf
|
|
#define lnx__vstprintf lnx__vswprintf
|
|
#else
|
|
#define lnx_vftprintf lnx_vfprintf
|
|
#define lnx__vstprintf lnx__vsprintf
|
|
#endif
|
|
|
|
#endif /* _CRT_PRINTF_H */
|