4.104.115
Last change
on this file since 48751ab was
e8d59ca,
checked in by Joel Sherrill <joel.sherrill@…>, on 07/22/09 at 14:26:25
|
2009-07-22 Joel Sherrill <joel.sherrill@…>
- Makefile.am, preinstall.am, libmisc/Makefile.am, wrapup/Makefile.am:
Add the stringto family of string to number converters. These are
error checking wrappers for the strtoXXX methods and do their best to
return false if the conversion failed. The error checking required
for this is tedious and error prone. Hence better to have in a family
of helper routines.
- libmisc/stringto/stringto.h, libmisc/stringto/stringto_template.h,
libmisc/stringto/stringtodouble.c, libmisc/stringto/stringtofloat.c,
libmisc/stringto/stringtoint.c, libmisc/stringto/stringtolong.c,
libmisc/stringto/stringtolonglong.c,
libmisc/stringto/stringtounsignedchar.c,
libmisc/stringto/stringtounsignedint.c,
libmisc/stringto/stringtounsignedlong.c,
libmisc/stringto/stringtounsignedlonglong.c: New files.
|
-
Property mode set to
100644
|
File size:
552 bytes
|
Line | |
---|
1 | /* |
---|
2 | * COPYRIGHT (c) 2009. |
---|
3 | * On-Line Applications Research Corporation (OAR). |
---|
4 | * |
---|
5 | * The license and distribution terms for this file may be |
---|
6 | * found in the file LICENSE in this distribution or at |
---|
7 | * http://www.rtems.com/license/LICENSE. |
---|
8 | * |
---|
9 | * $Id$ |
---|
10 | */ |
---|
11 | |
---|
12 | /* |
---|
13 | * Instantiate an error checking wrapper for strtoul (unsigned long) |
---|
14 | */ |
---|
15 | #define STRING_TO_INTEGER |
---|
16 | #define STRING_TO_TYPE unsigned long int |
---|
17 | #define STRING_TO_NAME rtems_string_to_unsigned_long |
---|
18 | #define STRING_TO_METHOD strtoul |
---|
19 | #define STRING_TO_MAX ULONG_MAX |
---|
20 | #include "stringto_template.h" |
---|
Note: See
TracBrowser
for help on using the repository browser.