summaryrefslogtreecommitdiff
path: root/lib/hitomezashi_utils.c
diff options
context:
space:
mode:
authorArjun Satarkar <me@arjunsatarkar.net>2023-06-01 13:31:24 +0000
committerArjun Satarkar <me@arjunsatarkar.net>2023-06-01 13:33:56 +0000
commit3a2fef94230f35d948634ffef83660afdffa0bad (patch)
treee4fb261e6fcf6d0b4b3d4b688aa94757700f45ab /lib/hitomezashi_utils.c
parent316382d74ed4a705c43e2380e7af20a500c24fa9 (diff)
downloadhitomezashi-3a2fef94230f35d948634ffef83660afdffa0bad.tar
hitomezashi-3a2fef94230f35d948634ffef83660afdffa0bad.tar.gz
hitomezashi-3a2fef94230f35d948634ffef83660afdffa0bad.zip
Complete libhitomezashi, reset project
Diffstat (limited to 'lib/hitomezashi_utils.c')
-rw-r--r--lib/hitomezashi_utils.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/hitomezashi_utils.c b/lib/hitomezashi_utils.c
deleted file mode 100644
index 93ec850..0000000
--- a/lib/hitomezashi_utils.c
+++ /dev/null
@@ -1,22 +0,0 @@
-#include "hitomezashi_utils.h"
-
-#include <stddef.h>
-#include <stdlib.h>
-
-char *hitomezashi_ascii_binary_str_to_ints(const char *ascii_str, size_t len) {
- char *res = malloc(len);
- for (int i = 0; i < len; ++i) {
- switch (ascii_str[i]) {
- case '0':;
- res[i] = 0;
- break;
- case '1':;
- res[i] = 1;
- break;
- default:;
- free(res);
- return NULL;
- }
- }
- return res;
-}