diff options
author | David A. Mellis <d.mellis@arduino.cc> | 2010-12-03 23:12:41 -0500 |
---|---|---|
committer | David A. Mellis <d.mellis@arduino.cc> | 2010-12-03 23:12:41 -0500 |
commit | 053ec1b989085e0d59f84ded8641058715701a8b (patch) | |
tree | 04bc744b58ddb6fcf71a80bbbf37a5146da43f5e /cores/arduino/WCharacter.h | |
parent | 4fefe032a53667cba2b801d0cc5f021b3d457ddd (diff) |
Replacing custom String.toInt() function with a call to atol().
Diffstat (limited to 'cores/arduino/WCharacter.h')
-rw-r--r-- | cores/arduino/WCharacter.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cores/arduino/WCharacter.h b/cores/arduino/WCharacter.h index 9b3e7fc..79733b5 100644 --- a/cores/arduino/WCharacter.h +++ b/cores/arduino/WCharacter.h @@ -20,8 +20,7 @@ #ifndef Character_h #define Character_h - -#include "WProgram.h" +#include <ctype.h> // WCharacter.h prototypes inline boolean isAlphaNumeric(int c) __attribute__((always_inline)); @@ -117,8 +116,8 @@ inline boolean isPunct(int c) // Checks for white-space characters. For the avr-libc library, -// these are: space, formfeed (’\f’), newline (’\n’), carriage -// return (’\r’), horizontal tab (’\t’), and vertical tab (’\v’). +// these are: space, formfeed ('\f'), newline ('\n'), carriage +// return ('\r'), horizontal tab ('\t'), and vertical tab ('\v'). inline boolean isSpace(int c) { return ( isspace (c) == 0 ? false : true); |