1 /*---------------------------------------------------------------------------* 2 Project: TwlSDK - MB - demos - multiboot-wfs - child 3 File: func_2.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 /* Functions */ 29 30 #if defined(__cplusplus) 31 extern "C" 32 { 33 #endif 34 35 func_2(char * dst)36 void func_2(char *dst) 37 { 38 static int i = 0; 39 ++i; 40 (void)OS_SPrintf(dst, "func_2. called %d time%s.\n", i, (i == 1) ? "" : "s", &i); 41 42 /* This is dummy code used to redundantly increase the code size. */ 43 if ((i > 0) && (i < 0)) 44 { 45 volatile int v; 46 OVAERLAY_CODE_BY_1000(++v); 47 } 48 } 49 50 51 #if defined(__cplusplus) 52 } /* Extern "C" */ 53 #endif 54 55 56 /******************************************************************************/ 57