GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
ltostrn(3) FreeBSD Library Functions Manual ltostrn(3)

#include <xtend/string.h>
-lxtend

char    *ltostrn(char string[], long val, unsigned base, size_t maxlen)

string: char array to receive ascii text
val:    value to convert to ascii
base:   number base for conversion, must be between 2 and 36
maxlen: size of 'string' array - 1 (to account for null byte)

ltostrn() is a small, fast integer to string converter that can convert using any base from 2 to 36. It is the converse of strtol(3). The size of the char buffer passed should be 1 more than maxlen to allow for a null byte.

A pointer to the converted string, or NULL if the string buffer was not big enough for all the digits

strtol(3)


Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.