added helper functions
This commit is contained in:
29
main.c
29
main.c
@@ -1,5 +1,5 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "draw.h"
|
||||
#include "main.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
@@ -10,17 +10,24 @@
|
||||
#endif
|
||||
|
||||
int main() {
|
||||
char *buffer = NULL;
|
||||
size_t buffsize = 0;
|
||||
ssize_t characters;
|
||||
// char *buffer = NULL;
|
||||
// size_t buffsize = 0;
|
||||
// ssize_t characters;
|
||||
|
||||
printf("What do you worry about? \n");
|
||||
characters = getline(&buffer, &buffsize, stdin);
|
||||
// printf("Python alter leck meine eier? \n");
|
||||
// characters = getline(&buffer, &buffsize, stdin);
|
||||
|
||||
if (characters != -1) {
|
||||
printf("you typed %s\n", buffer);
|
||||
}
|
||||
// if (characters != -1) {
|
||||
// printf("you typed %s\n", buffer);
|
||||
// }
|
||||
|
||||
sleep_ms(500);
|
||||
|
||||
drawEdges();
|
||||
drawEmptyLines(1);
|
||||
drawTitle(TITLE);
|
||||
drawEmptyLines(1);
|
||||
drawEdges();
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user