diff options
author | trhodes <trhodes@FreeBSD.org> | 2005-12-24 22:37:59 +0000 |
---|---|---|
committer | trhodes <trhodes@FreeBSD.org> | 2005-12-24 22:37:59 +0000 |
commit | 8190ceb049ac4ab6148966f67d239e0618b7114b (patch) | |
tree | 7e59823292e97167e21df1524210e5c0d4ccf3c0 /include | |
parent | 412f766852e2da36b4f178232cadb20dda832f61 (diff) | |
download | FreeBSD-src-8190ceb049ac4ab6148966f67d239e0618b7114b.zip FreeBSD-src-8190ceb049ac4ab6148966f67d239e0618b7114b.tar.gz |
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
Diffstat (limited to 'include')
-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 1cc6c37..1fa4328 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 *)); |