From dd3906c96555805af2580d593cf9429170b07a02 Mon Sep 17 00:00:00 2001 From: Nic Gaffney Date: Wed, 28 Jun 2023 23:55:00 -0500 Subject: sockets --- std/stdlib.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'std/stdlib.c') diff --git a/std/stdlib.c b/std/stdlib.c index 4a650a4..ed848c3 100644 --- a/std/stdlib.c +++ b/std/stdlib.c @@ -3,6 +3,7 @@ #include #include #include +#include int wait(int msec) { struct timespec ts; @@ -40,6 +41,18 @@ int as_int(float x) { return (int) x; } +bool sequals(char* a, char* b) { + if (strlen(a) != strlen(b)) { + return false; + } + for (int i=0; i