1 /*---------------------------------------------------------------------------* 2 Project: TwlSDK - MB - demos - multiboot-wfs - child 3 File: func_1.c 4 5 Copyright 2005-2008 Nintendo. 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 $Date:: 2008-09-18#$ 14 $Rev: 8573 $ 15 $Author: okubata_ryoma $ 16 *---------------------------------------------------------------------------*/ 17 18 #ifdef SDK_TWL 19 #include <twl.h> 20 #else 21 #include <nitro.h> 22 #endif 23 24 #include "func.h" 25 26 27 /******************************************************************************/ 28 /* function */ 29 30 #if defined(__cplusplus) 31 extern "C" 32 { 33 #endif 34 35 func_1(char * dst)36 void func_1(char *dst) 37 { 38 static int i = 0; 39 ++i; 40 (void)OS_SPrintf(dst, "func_1. called %d time%s.\n", i, (i == 1) ? "" : "s", &i); 41 } 42 43 44 #if defined(__cplusplus) 45 } /* extern "C" */ 46 #endif 47 48 49 /******************************************************************************/ 50