simulavr  1.1.0
string2.h
Go to the documentation of this file.
1 /*
2  ****************************************************************************
3  *
4  * simulavr - A simulator for the Atmel AVR family of microcontrollers.
5  * Copyright (C) 2009 Joel Sherrill
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License along
18  * with this program; if not, write to the Free Software Foundation, Inc.,
19  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20  *
21  ****************************************************************************
22  *
23  * $Id$
24  */
25 
26 #ifndef __String2_h
27 #define __String2_h
28 
30  const char *s,
31  unsigned char *n,
32  char **endptr,
33  int base
34 );
35 
36 bool StringToLong (
37  const char *s,
38  long *n,
39  char **endptr,
40  int base
41 );
42 
44  const char *s,
45  unsigned long *n,
46  char **endptr,
47  int base
48 );
49 
50 bool StringToLongLong (
51  const char *s,
52  long long *n,
53  char **endptr,
54  int base
55 );
56 
58  const char *s,
59  unsigned long long *n,
60  char **endptr,
61  int base
62 );
63 
64 #endif
bool StringToUnsignedLong(const char *s, unsigned long *n, char **endptr, int base)
bool StringToLong(const char *s, long *n, char **endptr, int base)
bool StringToLongLong(const char *s, long long *n, char **endptr, int base)
bool StringToUnsignedChar(const char *s, unsigned char *n, char **endptr, int base)
bool StringToUnsignedLongLong(const char *s, unsigned long long *n, char **endptr, int base)