Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/include strtoi and strtou additions



details:   https://anonhg.NetBSD.org/src/rev/d2b16f7c9eee
branches:  trunk
changeset: 335589:d2b16f7c9eee
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jan 16 18:35:59 2015 +0000

description:
strtoi and strtou additions

diffstat:

 include/inttypes.h |  17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r 5bdc5749d200 -r d2b16f7c9eee include/inttypes.h
--- a/include/inttypes.h        Fri Jan 16 18:35:28 2015 +0000
+++ b/include/inttypes.h        Fri Jan 16 18:35:59 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: inttypes.h,v 1.10 2013/04/27 21:24:27 joerg Exp $      */
+/*     $NetBSD: inttypes.h,v 1.11 2015/01/16 18:35:59 christos Exp $   */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -75,6 +75,21 @@
 uintmax_t      wcstoumax_l(const wchar_t * __restrict,
                    wchar_t ** __restrict, int, locale_t);
 #endif
+
+
+#if defined(_NETBSD_SOURCE)
+intmax_t       strtoi(const char * __restrict, char ** __restrict, int,
+                      intmax_t, intmax_t, int *);
+uintmax_t      strtou(const char * __restrict, char ** __restrict, int,
+                      uintmax_t, uintmax_t, int *);
+
+/* i18n variations */
+intmax_t       strtoi_l(const char * __restrict, char ** __restrict, int,
+                        intmax_t, intmax_t, int *, locale_t);
+uintmax_t      strtou_l(const char * __restrict, char ** __restrict, int,
+                        uintmax_t, uintmax_t, int *, locale_t);
+#endif /* defined(_NETBSD_SOURCE) */
+
 __END_DECLS
 
 #endif /* !_INTTYPES_H_ */



Home | Main Index | Thread Index | Old Index