aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-03-12 09:47:04 -0800
committerChristian Cunningham <cc@localhost>2022-03-12 09:47:04 -0800
commit468167fce9d64cb8f08832dd7586dd55f9200fb8 (patch)
tree2470776fdbf8ee4bb34fa36cb1e6010b5260cfc6 /src/lib
parentf1a310b37e482d091a4c4ac6cbbf7a27f4033a7e (diff)
Draw Base-10 Numbers Easier
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/strings.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/strings.c b/src/lib/strings.c
index 3155afa..674af19 100644
--- a/src/lib/strings.c
+++ b/src/lib/strings.c
@@ -10,6 +10,16 @@ unsigned long strlen(string_t s)
return len;
}
+void strcpy(string_t src, string_t dest)
+{
+ unsigned long idx = 0;
+ while (src[idx] != 0) {
+ dest[idx] = src[idx];
+ idx++;
+ }
+ dest[idx] = src[idx];
+}
+
unsigned char strcmp(string_t a, string_t b)
{
unsigned long idx = 0;