Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ultoa_r(3c) [hpux man page]

ltostr(3C)																ltostr(3C)

NAME
ltostr(), ultostr(), ltoa(), ultoa() - convert long integers to strings SYNOPSIS
Obsolescent Interfaces DESCRIPTION
Convert a signed long integer to the corresponding string representation in the specified base. The argument base must be between 2 and 36, inclusive. Convert an unsigned long integer to the corresponding string representation in the specified base. The argument base must be between 2 and 36, inclusive. Convert a signed long integer to the corresponding base 10 string representation, returning a pointer to the result. Convert an unsigned long integer to the corresponding base 10 string representation, returning a pointer to the result. These functions are smaller and faster than using for simple conversions (see printf(3S)). Obsolescent Interfaces convert long integers to strings. ERRORS
If the value of base is not between 2 and 36, and return NULL and set the external variable to ERANGE. WARNINGS
The return values for and point to data whose content is overwritten by subsequent calls to these functions by the same thread. and are obsolescent interface supported only for compatibility with existing DCE applications. New multi-threaded applications should use and AUTHOR
and were developed by HP. SEE ALSO
strtol(3C), printf(3S), thread_safety(5). ltostr(3C)

Check Out this Related Man Page

ltostr(3C)																ltostr(3C)

NAME
ltostr(), ultostr(), ltoa(), ultoa() - convert long integers to strings SYNOPSIS
Obsolescent Interfaces DESCRIPTION
Convert a signed long integer to the corresponding string representation in the specified base. The argument base must be between 2 and 36, inclusive. Convert an unsigned long integer to the corresponding string representation in the specified base. The argument base must be between 2 and 36, inclusive. Convert a signed long integer to the corresponding base 10 string representation, returning a pointer to the result. Convert an unsigned long integer to the corresponding base 10 string representation, returning a pointer to the result. These functions are smaller and faster than using for simple conversions (see printf(3S)). Obsolescent Interfaces convert long integers to strings. ERRORS
If the value of base is not between 2 and 36, and return NULL and set the external variable to ERANGE. WARNINGS
The return values for and point to data whose content is overwritten by subsequent calls to these functions by the same thread. and are obsolescent interface supported only for compatibility with existing DCE applications. New multi-threaded applications should use and AUTHOR
and were developed by HP. SEE ALSO
strtol(3C), printf(3S), thread_safety(5). ltostr(3C)
Man Page

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Convert Char to Dec using AWK

I'm facing a problem when trying to read a file and convert the content from char to decimal in ASCII. :confused: eg :- Input file : 20051231 8.00 experted result : 50484853495051493256464848 The content of input file is vary very day. I need to use AWK script to program it. Pls... (4 Replies)
Discussion started by: jasmine05
4 Replies

2. Shell Programming and Scripting

Checking if string contains integer

G'day guys, first post so be gentle. I need help with some code to work out if a variable (string) contains any integers. The valid variable (string) must contain only letters. Also need to be able to work out if a variable contains only integers. Any help greatly appreciated. (7 Replies)
Discussion started by: haz
7 Replies

3. Programming

what is the base type of enum

helo i have asked in exam what that what is the base type of enum options are given bewlo (1) long int (2) short int (3) signed int (4) unsigned int can u tell me what is the exact answer from the above option Regards, Amit (1 Reply)
Discussion started by: amitpansuria
1 Replies

4. Shell Programming and Scripting

Converting integer to String

Hi everyone, I would like to know how to convert an integer to a string. for instance if i=1 i would like to creat a variable called constant1. i want to do this in a for loop so for each value of i, i create a new variable such as constant2, constant3,... and so on. for i in 1 2 3 do ... (1 Reply)
Discussion started by: ROOZ
1 Replies

5. UNIX for Dummies Questions & Answers

Counting vowels in string. "Comparison pointer-integer".

I'm trying to write a programme which scans strings to find how many vowels they contain. I get an error saying that I'm trying to compare a pointer and an integer inif(*v == scanme){. How can I overcome this ? Also, the programme seems to scan only the first word of a string e.g.: if I type "abc... (1 Reply)
Discussion started by: fakuse
1 Replies

6. Shell Programming and Scripting

{bash scripting} Multiline initialisation of string variable

Hello, The task is quite simple. I need to initialise а string variable and assign to it a very long value. For the reason of readability I want to devide this long value into equal parts and place each part at a separate line. For instance, I have - ... (1 Reply)
Discussion started by: Pretoria
1 Replies

7. Programming

Using the File to search string

HI All, Am searching strings in a file, getting the string from data base in the code. If i take 10 strings as search input from data base am getting the output correct, if am taking more than 10 strings as input am getting a Memory fault(coredump) Error. In the code am using fopen() for... (1 Reply)
Discussion started by: jhon1257
1 Replies

8. Shell Programming and Scripting

[Solved] Decoding a base 64 string

Is it possible to decode a base 64 string in linux or unix. If so, related commands or reference notes would be really helpful. (1 Reply)
Discussion started by: chandu123
1 Replies