Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //calling outside main thread is not recommended
- #ifndef _FSTR_H
- #define _FSTR_H
- #ifndef FSTR_LEN
- # define FSTR_LEN 2048
- #endif
- #if FSTR_LEN < 2
- # error "length of fstr_ cannot be less than 2"
- #endif
- #include <stdarg.h>
- #include <stdio.h>
- extern char fstr_[FSTR_LEN];
- extern char* fstr(const char* fmt, ...);
- #ifndef FSTR_NO_WCHAR
- #ifndef FSTRW_LEN
- # define FSTRW_LEN 1024
- #endif
- #if FSTRW_LEN < 2
- # error "length of fstrw_ cannot be less than 2"
- #endif
- #include <wchar.h>
- wchar_t fstrw_[FSTRW_LEN];
- wchar_t* fstrw(const wchar_t* fmt, ...);
- #endif /* FSTR_NO_WCHAR */
- #endif /* _FSTR_H */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement