1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: nstd_Printf.h 4 Copyright (C)2009 Nintendo Co., Ltd. All rights reserved. 5 These coded instructions, statements, and computer programs contain 6 proprietary information of Nintendo of America Inc. and/or Nintendo 7 Company Ltd., and are protected by Federal copyright law. They may 8 not be disclosed to third parties or copied or duplicated in any form, 9 in whole or in part, without the prior written consent of Nintendo. 10 $Rev: 21974 $ 11 *--------------------------------------------------------------------------- 12 13 14 */ 15 16 #ifndef NN_NSTD_PRINTF_H_ 17 #define NN_NSTD_PRINTF_H_ 18 19 #include <nn/types.h> 20 21 #ifdef __cplusplus 22 23 namespace nn { namespace nstd { 24 25 /* 26 27 28 29 30 31 32 33 */ 34 s32 TVSNPrintf(char *dst, size_t len, const char *fmt, va_list vlist); 35 s32 TVSNPrintf(wchar_t *dst, size_t len, const wchar_t *fmt, va_list vlist); 36 37 /* 38 39 40 41 42 43 44 45 */ 46 s32 TSNPrintf(char *dst, size_t len, const char *fmt, ...); 47 s32 TSNPrintf(wchar_t *dst, size_t len, const wchar_t *fmt, ...); 48 49 /* 50 51 52 53 54 55 56 */ 57 s32 TSPrintf(char *dst, const char *fmt, ...); 58 s32 TSPrintf(wchar_t *dst, const wchar_t *fmt, ...); 59 60 }} 61 62 #endif 63 64 // C declarations follow 65 66 #include <nn/util/detail/util_CLibImpl.h> 67 68 NN_EXTERN_C s32 nnnstdTVSNPrintf(char *dst, size_t len, const char *fmt, va_list vlist); 69 NN_EXTERN_C s32 nnnstdTSNPrintf(char *dst, size_t len, const char *fmt, ...); 70 NN_EXTERN_C s32 nnnstdTSPrintf(char *dst, const char *fmt, ...); 71 NN_EXTERN_C s32 nnnstdTVSNWPrintf(wchar_t *dst, size_t len, const wchar_t *fmt, va_list vlist); 72 NN_EXTERN_C s32 nnnstdTSNWPrintf(wchar_t *dst, size_t len, const wchar_t *fmt, ...); 73 NN_EXTERN_C s32 nnnstdTSWPrintf(wchar_t *dst, const wchar_t *fmt, ...); 74 75 #endif /* NN_NSTD_PRINTF_H_ */ 76