summary refs log tree commit diff
path: root/cccl.c
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2025-03-24 21:01:37 +0300
committerNakidai <nakidai@disroot.org>2025-03-24 21:01:37 +0300
commitf312b357ab2ec3cf83a67945f3641b964a59e8d2 (patch)
tree425f3371eee770f64e268e9964dba29ad17bd410 /cccl.c
parentad9d6a199db7c28f8b20f131dfb55a26e0e251de (diff)
download3cl-f312b357ab2ec3cf83a67945f3641b964a59e8d2.tar.gz
3cl-f312b357ab2ec3cf83a67945f3641b964a59e8d2.zip
Add code
Diffstat (limited to 'cccl.c')
-rw-r--r--cccl.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/cccl.c b/cccl.c
new file mode 100644
index 0000000..58301f5
--- /dev/null
+++ b/cccl.c
@@ -0,0 +1,13 @@
+#include "cccl.h"
+
+#include <stddef.h>
+#include <stdio.h>
+
+
+void cccl(struct cccl_File file)
+{
+    struct cccl_Token tokens[TOKENS_LIMIT];
+
+    size_t tokens_amount = tokenize(file.buffer, file.size, tokens, TOKENS_LIMIT);
+    printf("Read: %lu\n", tokens_amount);
+}