This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/clibexam/lltoa.c

18 lines
297 B
C
Raw Permalink Normal View History

#include <stdio.h>
#include <stdlib.h>
void print_value( long long value )
{
int base;
char buffer[65];
for( base = 2; base <= 16; base = base + 2 )
printf( "%2d %s\n", base,
lltoa( value, buffer, base ) );
}
void main()
{
print_value( 1234098765LL );
}