changeset 0:ee518e7d265d

First Commit
author VilyaemKenyaz
date Wed, 26 Jul 2023 02:38:08 -0400
parents
children 5725e5313328
files c.sh quicktimer quicktimer.c
diffstat 3 files changed, 29 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
diff -r 000000000000 -r ee518e7d265d c.sh
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/c.sh	Wed Jul 26 02:38:08 2023 -0400
@@ -0,0 +1,3 @@
+#!/bin/sh
+#Complation script
+tcc quicktimer.c -o quicktimer
diff -r 000000000000 -r ee518e7d265d quicktimer
Binary file quicktimer has changed
diff -r 000000000000 -r ee518e7d265d quicktimer.c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/quicktimer.c	Wed Jul 26 02:38:08 2023 -0400
@@ -0,0 +1,26 @@
+// This program makes a quick timer
+// Im making this because I don't have internet
+// to access bash documentation so you might
+// as well make a good C program
+
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+//#include <unistd,h>
+#include <stdbool.h>
+#include <time.h>
+
+
+int main(int argc, char* argv[]){
+//unsigned int timeleft;
+if (argc != 1){
+printf("QuickTimer by Vilyaem peepsoftgames.github.io thekenyaz@yandex.com\n Usage:\n quicktimer (unsigned int seconds)\n");
+return 1;
+}
+
+unsigned int timeleft = argv[1];
+
+printf("Timer has finished, enjoy your day. Glory to the Father, the Son, and the Holy Spirit\n");
+
+}