diff options
author | Tom Rhodes <trhodes@FreeBSD.org> | 2005-12-24 22:37:59 +0000 |
---|---|---|
committer | Tom Rhodes <trhodes@FreeBSD.org> | 2005-12-24 22:37:59 +0000 |
commit | 257551c6a0c7362d6eaf18bdee22e67e77023ebf (patch) | |
tree | 7e59823292e97167e21df1524210e5c0d4ccf3c0 /include/stdlib.h | |
parent | 09c00166e46fe394db30efb6fc982761b2fb7b82 (diff) | |
download | src-test2-257551c6a0c7362d6eaf18bdee22e67e77023ebf.tar.gz src-test2-257551c6a0c7362d6eaf18bdee22e67e77023ebf.zip |
Add a64l(), l64a(), and l64a_r() XSI extentions. These functions convert
between a 32-bit integer and a radix-64 ASCII string. The l64a_r() function
is a NetBSD addition.
PR: 51209 (based on submission, but very different)
Reviewed by: bde, ru
Notes
Notes:
svn path=/head/; revision=153707
Diffstat (limited to 'include/stdlib.h')
-rw-r--r-- | include/stdlib.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index 1cc6c371d7ed..1fa43282284e 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -172,7 +172,7 @@ void unsetenv(const char *); */ #if __XSI_VISIBLE /* XXX XSI requires pollution from <sys/wait.h> here. We'd rather not. */ -/* long a64l(const char *); */ +long a64l(const char *); double drand48(void); /* char *ecvt(double, int, int * __restrict, int * __restrict); */ double erand48(unsigned short[3]); @@ -182,7 +182,7 @@ int getsubopt(char **, char *const *, char **); int grantpt(int); char *initstate(unsigned long /* XSI requires u_int */, char *, long); long jrand48(unsigned short[3]); -/* char *l64a(long); */ +char *l64a(long); void lcong48(unsigned short[7]); long lrand48(void); #ifndef _MKSTEMP_DECLARED @@ -258,6 +258,7 @@ __const char * getprogname(void); int heapsort(void *, size_t, size_t, int (*)(const void *, const void *)); +int l64a_r(long, char *, int); int mergesort(void *, size_t, size_t, int (*)(const void *, const void *)); void qsort_r(void *, size_t, size_t, void *, int (*)(void *, const void *, const void *)); |