ATOH
Section: C Library Functions (3)
Updated: 12/5/79
Index
Return to Main Contents
NAME
atoh, atoo - convert ASCII to hexadecimal or octal
SYNOPSIS
unsigned int atoh (ap)
char *ap;
unsigned int atoo (ap)
char *ap;
DESCRIPTION
Atoh
converts the string pointed to by
ap,
representing an hexadecimal number, to an unsigned integer.
The string may contain leading blanks and tabs, and a string of
hexadecimal digits.
Conversion stops at the first character which is
not a valid hexadecimal digit.
The digits themselves include the characters "0" through "9",
"a" through "f", and "A" through "F".
Atoo
converts the string pointed to by
ap,
representing an octal number, to an unsigned integer.
The string may contain leading blanks and tabs, and a string of
octal digits.
Conversion stops at the first character which is
not a valid octal digit.
SEE ALSO
atof(3),
atoi(3),
atol(3),
BUGS
There is no provision for overflow.
Unary + is not accepted.
(Unary
- is not accepted, due to the interpretation of the numbers as unsigned.)
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- SEE ALSO
-
- BUGS
-
This document was created by
man2html,
using the manual pages.
Time: 12:50:29 GMT, May 26, 2025