00001 /* 00002 **************************************************************************** 00003 * 00004 * simulavr - A simulator for the Atmel AVR family of microcontrollers. 00005 * Copyright (C) 2009 Joel Sherrill 00006 * 00007 * This program is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; either version 2 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00020 * 00021 **************************************************************************** 00022 * 00023 * $Id$ 00024 */ 00025 00026 #ifndef __String2_h 00027 #define __String2_h 00028 00029 bool StringToUnsignedChar ( 00030 const char *s, 00031 unsigned char *n, 00032 char **endptr, 00033 int base 00034 ); 00035 00036 bool StringToLong ( 00037 const char *s, 00038 long *n, 00039 char **endptr, 00040 int base 00041 ); 00042 00043 bool StringToUnsignedLong ( 00044 const char *s, 00045 unsigned long *n, 00046 char **endptr, 00047 int base 00048 ); 00049 00050 bool StringToLongLong ( 00051 const char *s, 00052 long long *n, 00053 char **endptr, 00054 int base 00055 ); 00056 00057 bool StringToUnsignedLongLong ( 00058 const char *s, 00059 unsigned long long *n, 00060 char **endptr, 00061 int base 00062 ); 00063 00064 #endif