/* vim: ts=4 sw=4 sts=4 ff=unix fenc=utf-8 : * ===================================================================== * sc_biginteger.h * Copyright (c) 2003 - 2011 sys0tem * LICENSE : * LGPL (GNU Lesser General Public License - Version 3,29 June 2007) * http://www.gnu.org/copyleft/lesser.html * or * EPL (Eclipse Public License - v1.0) * http://www.eclipse.org/legal/epl-v10.html * ===================================================================== */ #ifndef __SC_NUMBER_H__ #define __SC_NUMBER_H__ #include <stdio.h> #include <sc_stdbool.h> #include <sc_stdint.h> typedef struct { int64_t value[4]; /*< 整数部分 */ int point; /*< 小数点以下の桁数 */ } SC_Number; #ifdef __cplusplus extern "C" { #endif bool SC_isHexNumber(char c); SC_Number SC_toNumber(const char* str, int* len); #ifdef __cplusplus } #endif #endif /* __SC_NUMBER_H__ */