summaryrefslogtreecommitdiff
path: root/userspace/test-math.c
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-09-21 12:56:51 +0200
committerMiguel <m.i@gmx.at>2018-09-21 12:56:51 +0200
commitc298ca7e6beaad0bcc32af6d4cf50d41b79f13b7 (patch)
treeb28e9c052cff3264439cad3c41b29262c60ba6ac /userspace/test-math.c
parentf5281689c95758f17628f0286e0265ecf3385a8e (diff)
fix framebufffer/ textmode and clean userspace a little bit more
Diffstat (limited to 'userspace/test-math.c')
-rw-r--r--userspace/test-math.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/userspace/test-math.c b/userspace/test-math.c
deleted file mode 100644
index 9327c19..0000000
--- a/userspace/test-math.c
+++ /dev/null
@@ -1,33 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <math.h>
-#include <time.h>
-
-int main(int argc, char **argv)
-{
- time_t ltime;
- time(&ltime);
- printf("the time is %s", ctime(&ltime));
-
- unsigned int seed=time(NULL);
- printf("seed = %u\n",seed);
-
- srand(seed);
-
- for(int i=0;i<10;i++)
- {
- int r=rand()%100;
- printf ("the random number is %i",r);
- printf("sin(%i) = %f \n",r,sin(r));
- }
-
-
- return 0;
-}
-
-
-
-
-