From 8190ceb049ac4ab6148966f67d239e0618b7114b Mon Sep 17 00:00:00 2001 From: trhodes Date: Sat, 24 Dec 2005 22:37:59 +0000 Subject: 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 --- include/stdlib.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/stdlib.h') 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 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 *)); -- cgit v1.1