Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ atob(3spp) — mips UMIPS RISC/os 5.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought



ATOB(3spp)          RISC/os Reference Manual           ATOB(3spp)



NAME
     atob - convert ascii representation of integer to binary

SYNOPSIS
     char *atob(cp, iptr)
     char *cp;
     int *iptr;

DESCRIPTION
     atob converts ascii strings representing numbers in decimal,
     octal, hex, or binary base to binary.  Numbers in any base
     may be optionally preceded by spaces.  Any number may be
     immediately preceded by a minus sign, also.  Numbers begin-
     ning with the characters "0x" or "0X" are assumed to be in
     hex, numbers beginning with the characters "0b" or "0B" are
     assumed to be in binary, numbers beginning with the charac-
     ter "0" are assumed to be in octal, otherwise the conversion
     is for decimal numbers.  The conversion continues until a
     non-digit or a digit inappropriate for the base is found.
     The converted value is stored in the location pointed to by
     iptr.  Atob returns the address of the first character not
     included in the conversion.  Overflow during conversion
     causes a warning message to be printed.
































                         Printed 1/6/92                    Page 1



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026