|
|
HP-UX Reference Volume 4 of 5 > lltostr(3C) |
|
NAMEltostr(), ultostr(), ltoa(), ultoa() — convert long integers to strings SYNOPSIS#include <stdlib.h> char *ltostr(long n, int base); char *ultostr(unsigned long n, int base); char *ltoa(long n); char *ultoa(unsigned long n); DESCRIPTION
These functions are smaller and faster than using sprintf() for simple conversions (see printf(3S)). APPLICATION USAGEltostr(), ultostr(), ltoa() and ultoa() are thread-safe. These interfaces are not async-cancel-safe. ERRORSIf the value of base is not between 2 and 36, ltostr() and ultostr() return NULL and set the external variable errno to ERANGE. WARNINGSThe return values for ltostr(), ultostr(), ltoa() and ultoa() point to data whose content is overwritten by subsequent calls to these functions by the same thread. ltostr_r(), ultostr_r(), ltoa_r() and ultoa_r() are obsolescent interface supported only for compatibility with existing DCE applications. New multi-threaded applications should use ltostr(), ultostr(), ltoa() and ultoa(). |
|