•  Back 
  •  Libraries 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help 
  •  Show info about hypertext 
  •  View a new file 
Topic       : Pure C Library Documentation
Author      : John Kormylo
Version     : LIB.HYP 1.0
Subject     : Documentation/Pure C Library
Nodes       : 1309
Index Size  : 32068
HCP-Version : 3
Compiled on : Atari
@charset    : atarist
@lang       : en
@default    : 
@help       : Help
@options    : +g -i -s +x +z -t4
@width      : 75
View Ref-File[ itoa ]

#include <stdlib.h>

char *itoa( int value, char *string, int radix );

  <value> is the number to be formatted.
  <string> is a buffer to return a NULL terminated string.
  <radix> is the base (2-16) to use (0 = decimal).


Function converts an ... to a formatted string for any base from
2 (binary) to 16 (hexadecimal).

It returns a pointer to <string>.

Note: Not an ANSI function.
      Uses malloc() to allocate memory.

See also Standard Library and sprintf().