diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-05-12 21:34:58 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-05-12 21:34:58 +0200 |
commit | 178d93bced74198123254bdff9c06b1121f633d6 (patch) | |
tree | 5e350c8570e4c1d548c1ee4dbb4dfddcca458781 /src | |
parent | 0a1c5c69244b1199cb877aed029a3c9aca68f60a (diff) | |
download | abaos-178d93bced74198123254bdff9c06b1121f633d6.tar.gz abaos-178d93bced74198123254bdff9c06b1121f633d6.tar.bz2 |
some testing of atoi, added a limits.h
Diffstat (limited to 'src')
-rw-r--r-- | src/limits.h | 7 | ||||
-rw-r--r-- | src/port.h | 2 | ||||
-rw-r--r-- | src/stdlib.h | 2 | ||||
-rw-r--r-- | src/string.h | 2 |
4 files changed, 10 insertions, 3 deletions
diff --git a/src/limits.h b/src/limits.h new file mode 100644 index 0000000..1fc4e37 --- /dev/null +++ b/src/limits.h @@ -0,0 +1,7 @@ +#ifndef LIMITS_H +#define LIMITS_H + +#define INT_MAX 2147483647 +#define INT_MIN -2147483648 + +#endif // LIMITS_H @@ -11,4 +11,4 @@ void port8_init( port8_t *port, uint16_t number ); void port8_write( port8_t *port, uint8_t data ); uint8_t port8_read( port8_t *port ); -#endif /* PORT_H */ +#endif // diff --git a/src/stdlib.h b/src/stdlib.h index fc6e248..331012e 100644 --- a/src/stdlib.h +++ b/src/stdlib.h @@ -3,4 +3,4 @@ char *itoa( int v, char *s, int base ); -#endif /* STDLIB_H */ +#endif // STDLIB_H diff --git a/src/string.h b/src/string.h index c3e3145..e24df9b 100644 --- a/src/string.h +++ b/src/string.h @@ -9,4 +9,4 @@ size_t strlen( const char *s ); int strcmp( const char *s1, const char *s2 ); size_t strlcpy( char *d, const char *s, size_t n ); -#endif /* STRING_H */ +#endif // STRING_H |