Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (12 sloc) 370 Bytes
#include "goprint.h"
void gotoxy(int x, int y) /* Go to the coordinate */
{
COORD pos = {2 * x, y};
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleCursorPosition(hOut, pos);
}
void goprint(int x, int y, const char *c) /* Print the char */
{
gotoxy(x, y);
printf("%s", c);
}
You can’t perform that action at this time.