aboutsummaryrefslogtreecommitdiff
path: root/test.c
blob: f19dee95577d1ce235815699fbfc5cc13564372d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>

void print(char* x) {
    printf("%s", x);
}
void printfl(float x) {
    printf("%f", x);
}
void printint(int x) {
    printf("%d", x);
}

int as_int(float x) {
    return (int) x;
}

void termpos(int x, int y) {
    printf("\x1b[%d;%dH", x, y);
}