1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: nstd_Printf.h 4 5 Copyright (C)2009 Nintendo Co., Ltd. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Rev: 39043 $ 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 /* Please see man pages for details 26 27 28 29 30 31 32 33 */ 34 s32 TVSNPrintf(char *dst, size_t len, const char *fmt, va_list vlist); 35 36 /* Please see man pages for details 37 38 39 40 41 42 43 44 45 46 47 */ 48 s32 TVSNPrintf(wchar_t *dst, size_t len, const wchar_t *fmt, va_list vlist); 49 50 /* Please see man pages for details 51 52 53 54 55 56 57 58 */ 59 s32 TSNPrintf(char *dst, size_t len, const char *fmt, ...); 60 61 /* Please see man pages for details 62 63 64 65 66 67 68 69 70 71 72 */ 73 s32 TSNPrintf(wchar_t *dst, size_t len, const wchar_t *fmt, ...); 74 75 /* Please see man pages for details 76 77 78 79 80 81 82 */ 83 s32 TSPrintf(char *dst, const char *fmt, ...); 84 85 /* Please see man pages for details 86 87 88 89 90 91 92 93 94 95 */ 96 s32 TSPrintf(wchar_t *dst, const wchar_t *fmt, ...); 97 98 }} 99 100 #endif 101 102 // Below is the C declaration 103 104 #include <nn/util/detail/util_CLibImpl.h> 105 106 NN_EXTERN_C s32 nnnstdTVSNPrintf(char *dst, size_t len, const char *fmt, va_list vlist); 107 NN_EXTERN_C s32 nnnstdTSNPrintf(char *dst, size_t len, const char *fmt, ...); 108 NN_EXTERN_C s32 nnnstdTSPrintf(char *dst, const char *fmt, ...); 109 NN_EXTERN_C s32 nnnstdTVSNWPrintf(wchar_t *dst, size_t len, const wchar_t *fmt, va_list vlist); 110 NN_EXTERN_C s32 nnnstdTSNWPrintf(wchar_t *dst, size_t len, const wchar_t *fmt, ...); 111 NN_EXTERN_C s32 nnnstdTSWPrintf(wchar_t *dst, const wchar_t *fmt, ...); 112 113 #endif /* NN_NSTD_PRINTF_H_ */ 114