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

char* readln() {
    char* str = malloc(128);
    scanf("%127s", str);
    return str;
}

void print(char *str) {
   fputs(str, stdout);
}

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