itoab

Converts an integer to a string, which expresses the value in binary format.

Library:LibC
Classification:Other
Service:General C Services

Syntax

  #include <stdlib.h> 
   
  char *itoab (
     unsigned long   value,   
     char           *buffer);
  

Parameters

value

(IN) Specifies the integer value to convert.

buffer

(OUT) Points to the converted string, which will be a series of 1s and 0s.

Return Values

Returns the pointer to the result.

Remarks

The itoab function converts the integer value into the equivalent string in binary notation, storing the result in the character array pointed to by buffer. A null-terminating character is appended to the result.

See Also