commit 414b3125fc8523d54998d6a45d6bb3c438ee3979 Author: Jannis Heydemann Date: Fri Jun 5 21:19:18 2026 +0200 initial ideas diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c795b05 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build \ No newline at end of file diff --git a/main.c b/main.c new file mode 100644 index 0000000..a864fed --- /dev/null +++ b/main.c @@ -0,0 +1,26 @@ +#include +#include + +#ifdef _WIN32 + #include + #define sleep_ms(ms) Sleep(ms) +#else + #include + #define sleep_ms(ms) usleep((ms) * 1000) +#endif + +int main() { + char *buffer = NULL; + size_t buffsize = 0; + ssize_t characters; + + printf("What do you worry about? \n"); + characters = getline(&buffer, &buffsize, stdin); + + if (characters != -1) { + printf("you typed %s\n", buffer); + } + + sleep_ms(500); + return 0; +} \ No newline at end of file