aboutsummaryrefslogtreecommitdiff
path: root/sizeof.c
diff options
context:
space:
mode:
authordam <dam@gudinoff>2024-05-16 02:42:04 +0100
committerdam <dam@gudinoff>2024-05-16 02:42:04 +0100
commitbdea73c8349c2c918befad4120f49f9826d270dc (patch)
tree972b9b2f4c1025bc1a0ccb67ce3a3b6cb04500f5 /sizeof.c
parent7d3ac280da5321c469e2b08ce86783133b367cdc (diff)
downloadtask-time-tracker-bdea73c8349c2c918befad4120f49f9826d270dc.tar.zst
task-time-tracker-bdea73c8349c2c918befad4120f49f9826d270dc.zip
Imported new module structure.
Diffstat (limited to 'sizeof.c')
-rw-r--r--sizeof.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/sizeof.c b/sizeof.c
deleted file mode 100644
index c260c31..0000000
--- a/sizeof.c
+++ /dev/null
@@ -1,50 +0,0 @@
-// compile with : gcc sizeof.c -lncurses
-
-#include <assert.h>
-#include <errno.h>
-#include <inttypes.h>
-#include <limits.h>
-#include <locale.h>
-#include <ncurses.h>
-#include <signal.h>
-#include <stdarg.h>
-#include <stdbool.h>
-#include <stddef.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/stat.h>
-#include <sys/types.h>
-#include <time.h>
-
-int main(int argc, char **argv) {
- // initscr();
-
- fprintf(stderr, "sizeof char: %d\n", sizeof(char));
- fprintf(stderr, "sizeof short: %d\n", sizeof(short));
- fprintf(stderr, "sizeof int: %d\n", sizeof(int));
- fprintf(stderr, "sizeof long: %d\n", sizeof(long));
- fprintf(stderr, "sizeof unsigned: %d\n", sizeof(unsigned));
- fprintf(stderr, "sizeof chtype: %d\n", sizeof(chtype));
- // int w_size_x, w_size_y;
- // getmaxyx(stdscr, w_size_y, w_size_x);
- // char str[64];
- // memset(str, 0, 64);
- // sprintf(str, "x,y : %dx%d\n", w_size_x, w_size_y);
- // mvaddstr(2, 2, str);
- // sprintf(str, "resize:%d\n", KEY_RESIZE);
- // mvaddstr(3, 2, str);
-
- // unsigned m = ACS_DIAMOND;
- fprintf(stderr, "sizeof ACS %d\n", sizeof(ACS_DIAMOND));
- //
- // if (ACS_DIAMOND != 0 || ACS_URCORNER != 0){
- // fprintf(stderr, "BAZINGA\n");
- // }
-// fprintf(stderr, ">%d<\n", strlen(ACS_DIAMOND));
-
- // mvaddch(0, 0, m);
- // getch();
- // endwin();
-}
-