1 /*---------------------------------------------------------------------------* 2 Project: TwlSDK - STD - include 3 File: stdlib.h 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 #ifndef NITRO_STD_STDLIB_H_ 19 #define NITRO_STD_STDLIB_H_ 20 21 #ifdef __cplusplus 22 extern "C" { 23 #endif 24 25 #include <nitro/misc.h> 26 #include <nitro/types.h> 27 28 //---- aliases 29 #define STD_AToI STD_ConvertAsciiToInt 30 #define STD_AToL STD_ConvertAsciiToLong 31 32 33 //================================================================================ 34 // Convert numeral String 35 //================================================================================ 36 /*---------------------------------------------------------------------------* 37 Name: STD_ConvertAsciiToInt 38 39 Description: convert numeral string to integer 40 same to atoi() 41 42 Arguments: s : string 43 44 Returns: value 45 *---------------------------------------------------------------------------*/ 46 extern int STD_ConvertAsciiToInt( const char* s ); 47 48 /*---------------------------------------------------------------------------* 49 Name: STD_ConvertAsciiToLong 50 51 Description: convert numeral string to long integer 52 same to atol() 53 54 Arguments: s : string 55 56 Returns: value 57 *---------------------------------------------------------------------------*/ 58 extern long int STD_ConvertAsciiToLong( const char* s ); 59 60 61 #ifdef __cplusplus 62 } /* extern "C" */ 63 #endif 64 65 /* NITRO_STD_STDLIB_H_ */ 66 #endif 67