This commit is contained in:
Kamila Szewczyk 2023-10-08 15:09:04 +02:00
parent 4da76c0f3c
commit 3981746d2a
Signed by: Palaiologos
GPG Key ID: E34D7BADA3DACC14
2 changed files with 10 additions and 1 deletions

View File

@ -4,7 +4,7 @@ CFLAGS=-Ilib83 -c -mz80 --std-sdcc2x --no-std-crt0 --reserve-regs-iy --opt-code-
OBJS=_crt0.rel clrscr.rel putchar.rel puts.rel exit.rel gotoxy.rel __assert_fail.rel \
getchar.rel put_int.rel ctype.rel memcpy.rel memset.rel memmove.rel memcmp.rel \
strcpy.rel \
strcpy.rel strlen.rel \
main.rel
.PHONY: all clean try

9
lib83/strlen.c Normal file
View File

@ -0,0 +1,9 @@
#include <string.h>
size_t strlen (const char * str) {
register size_t i = 0;
while(*str++) i++;
return i;
}