graphics.hlp (
Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
ASCII.C
◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
/* ASCII.C illustrates function:
* _outmem
*/
#include <stdio.h>
#include <graph.h>
void main()
{
int i, len;
char tmp[10];
_clearscreen( _GCLEARSCREEN );
for( i = 0; i < 256; i++ )
{
_settextposition( (i % 24) + 1, (i / 24) * 7 );
len = sprintf( tmp, "%3d %c", i, i );
_outmem( tmp, len );
}
_settextposition( 24, 1 );
}