summary refs log tree commit diff
path: root/include/stdlib.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-01-02 06:25:51 +0000
committerUlrich Drepper <drepper@redhat.com>2002-01-02 06:25:51 +0000
commitbf1fd59437e324db9d06b7d47b81a2ac9aabf5c7 (patch)
treeb89a5989a6a0b3494c7cfa71290eaf38f3f96fe6 /include/stdlib.h
parentdcb00da6fa49781c2de6980baaa723929e11775a (diff)
downloadglibc-bf1fd59437e324db9d06b7d47b81a2ac9aabf5c7.tar.gz
glibc-bf1fd59437e324db9d06b7d47b81a2ac9aabf5c7.tar.xz
glibc-bf1fd59437e324db9d06b7d47b81a2ac9aabf5c7.zip
Define inlines for the _l variants of the strto* functions.
Diffstat (limited to 'include/stdlib.h')
-rw-r--r--include/stdlib.h76
1 files changed, 76 insertions, 0 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index 675ed768c6..15fc179e2d 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -65,6 +65,82 @@ extern int __posix_memalign (void **memptr, size_t alignment, size_t size)
 
 extern int __libc_system (const char *line);
 
+extern double ____strtod_l_internal (__const char *__restrict __nptr,
+				     char **__restrict __endptr, int __group,
+				     __locale_t __loc) __THROW;
+extern float ____strtof_l_internal (__const char *__restrict __nptr,
+				    char **__restrict __endptr, int __group,
+				    __locale_t __loc) __THROW;
+extern long double ____strtold_l_internal (__const char *__restrict __nptr,
+					   char **__restrict __endptr,
+					   int __group, __locale_t __loc)
+     __THROW;
+extern long int ____strtol_l_internal (__const char *__restrict __nptr,
+				       char **__restrict __endptr,
+				       int __base, int __group,
+				       __locale_t __loc) __THROW;
+extern unsigned long int ____strtoul_l_internal (__const char *
+						 __restrict __nptr,
+						 char **__restrict __endptr,
+						 int __base, int __group,
+						 __locale_t __loc) __THROW;
+__extension__
+extern long long int ____strtoll_l_internal (__const char *__restrict __nptr,
+					     char **__restrict __endptr,
+					     int __base, int __group,
+					     __locale_t __loc) __THROW;
+__extension__
+extern unsigned long long int ____strtoull_l_internal (__const char *
+						       __restrict __nptr,
+						       char **
+						       __restrict __endptr,
+						       int __base, int __group,
+						       __locale_t __loc)
+     __THROW;
+
+extern __inline double
+__strtod_l (__const char *__restrict __nptr, char **__restrict __endptr,
+	    __locale_t __loc) __THROW
+{
+  return ____strtod_l_internal (__nptr, __endptr, 0, __loc);
+}
+extern __inline long int
+__strtol_l (__const char *__restrict __nptr, char **__restrict __endptr,
+	    int __base, __locale_t __loc) __THROW
+{
+  return ____strtol_l_internal (__nptr, __endptr, __base, 0, __loc);
+}
+extern __inline unsigned long int
+__strtoul_l (__const char *__restrict __nptr, char **__restrict __endptr,
+	     int __base, __locale_t __loc) __THROW
+{
+  return ____strtoul_l_internal (__nptr, __endptr, __base, 0, __loc);
+}
+extern __inline float
+__strtof_l (__const char *__restrict __nptr, char **__restrict __endptr,
+	    __locale_t __loc) __THROW
+{
+  return ____strtof_l_internal (__nptr, __endptr, 0, __loc);
+}
+extern __inline long double
+__strtold_l (__const char *__restrict __nptr, char **__restrict __endptr,
+	     __locale_t __loc) __THROW
+{
+  return ____strtold_l_internal (__nptr, __endptr, 0, __loc);
+}
+__extension__ extern __inline long long int
+__strtoll_l (__const char *__restrict __nptr, char **__restrict __endptr,
+	     int __base, __locale_t __loc) __THROW
+{
+  return ____strtoll_l_internal (__nptr, __endptr, __base, 0, __loc);
+}
+__extension__ extern __inline unsigned long long int
+__strtoull_l (__const char * __restrict __nptr, char **__restrict __endptr,
+	      int __base, __locale_t __loc) __THROW
+{
+  return ____strtoull_l_internal (__nptr, __endptr, __base, 0, __loc);
+}
+
 #endif
 #undef __Need_M_And_C