diff options
-rw-r--r-- | include/a2i/str2i.h | 22 | ||||
-rw-r--r-- | lib/src/a2i/str2i.c | 20 |
2 files changed, 21 insertions, 21 deletions
diff --git a/include/a2i/str2i.h b/include/a2i/str2i.h index 4118d9e..4a7bc98 100644 --- a/include/a2i/str2i.h +++ b/include/a2i/str2i.h @@ -59,17 +59,17 @@ #if defined(__clang__) # pragma clang assume_nonnull begin #endif -A2I_STR2I_ATTR int str2shh(signed char *restrict n, const char *restrict s); -A2I_STR2I_ATTR int str2sh(short *restrict n, const char *restrict s); -A2I_STR2I_ATTR int str2si(int *restrict n, const char *restrict s); -A2I_STR2I_ATTR int str2sl(long *restrict n, const char *restrict s); -A2I_STR2I_ATTR int str2sll(long long *restrict n, const char *restrict s); - -A2I_STR2I_ATTR int str2uhh(unsigned char *restrict n, const char *restrict s); -A2I_STR2I_ATTR int str2uh(unsigned short *restrict n, const char *restrict s); -A2I_STR2I_ATTR int str2ui(unsigned int *restrict n, const char *restrict s); -A2I_STR2I_ATTR int str2ul(unsigned long *restrict n, const char *restrict s); -A2I_STR2I_ATTR int str2ull(unsigned long long *restrict n, const char *restrict s); +A2I_STR2I_ATTR int str2shh(signed char *restrict n, const char *s); +A2I_STR2I_ATTR int str2sh(short *restrict n, const char *s); +A2I_STR2I_ATTR int str2si(int *restrict n, const char *s); +A2I_STR2I_ATTR int str2sl(long *restrict n, const char *s); +A2I_STR2I_ATTR int str2sll(long long *restrict n, const char *s); + +A2I_STR2I_ATTR int str2uhh(unsigned char *restrict n, const char *s); +A2I_STR2I_ATTR int str2uh(unsigned short *restrict n, const char *s); +A2I_STR2I_ATTR int str2ui(unsigned int *restrict n, const char *s); +A2I_STR2I_ATTR int str2ul(unsigned long *restrict n, const char *s); +A2I_STR2I_ATTR int str2ull(unsigned long long *restrict n, const char *s); #if defined(__clang__) # pragma clang assume_nonnull end #endif diff --git a/lib/src/a2i/str2i.c b/lib/src/a2i/str2i.c index 218abce..aed70d0 100644 --- a/lib/src/a2i/str2i.c +++ b/lib/src/a2i/str2i.c @@ -14,62 +14,62 @@ # pragma clang assume_nonnull begin #endif int -str2shh(signed char *restrict n, const char *restrict s) +str2shh(signed char *restrict n, const char *s) { return a2i(signed char, n, s, NULL, 0, SCHAR_MIN, SCHAR_MAX); } int -str2sh(short *restrict n, const char *restrict s) +str2sh(short *restrict n, const char *s) { return a2i(short, n, s, NULL, 0, SHRT_MIN, SHRT_MAX); } int -str2si(int *restrict n, const char *restrict s) +str2si(int *restrict n, const char *s) { return a2i(int, n, s, NULL, 0, INT_MIN, INT_MAX); } int -str2sl(long *restrict n, const char *restrict s) +str2sl(long *restrict n, const char *s) { return a2i(long, n, s, NULL, 0, LONG_MIN, LONG_MAX); } int -str2sll(long long *restrict n, const char *restrict s) +str2sll(long long *restrict n, const char *s) { return a2i(long long, n, s, NULL, 0, LLONG_MIN, LLONG_MAX); } int -str2uhh(unsigned char *restrict n, const char *restrict s) +str2uhh(unsigned char *restrict n, const char *s) { return a2i(unsigned char, n, s, NULL, 0, 0, UCHAR_MAX); } int -str2uh(unsigned short *restrict n, const char *restrict s) +str2uh(unsigned short *restrict n, const char *s) { return a2i(unsigned short, n, s, NULL, 0, 0, USHRT_MAX); } int -str2ui(unsigned int *restrict n, const char *restrict s) +str2ui(unsigned int *restrict n, const char *s) { return a2i(unsigned int, n, s, NULL, 0, 0, UINT_MAX); } int -str2ul(unsigned long *restrict n, const char *restrict s) +str2ul(unsigned long *restrict n, const char *s) { return a2i(unsigned long, n, s, NULL, 0, 0, ULONG_MAX); } int -str2ull(unsigned long long *restrict n, const char *restrict s) +str2ull(unsigned long long *restrict n, const char *s) { return a2i(unsigned long long, n, s, NULL, 0, 0, ULLONG_MAX); } |