summaryrefslogtreecommitdiff
path: root/main.h
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2024-03-06 23:31:51 -0600
committerzachir <zachir@librem.one>2024-03-06 23:31:51 -0600
commita94711362f844d5de6b498d05f12611312e22e0d (patch)
treefbde8aea275820d82b486aa25079dbf87d37edc4 /main.h
parentea86302d44a0370264959970eb624035aeb4cef4 (diff)
Use strtol instead of checking each digit
This makes it both faster and smaller.
Diffstat (limited to 'main.h')
-rw-r--r--main.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.h b/main.h
index 61f7b1c..d6d758e 100644
--- a/main.h
+++ b/main.h
@@ -6,6 +6,7 @@
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
+#include <stdlib.h>
#include <assert.h>
#include <string.h>