réplica de
https://github.com/Arnau478/quark.git
synced 2024-05-19 20:36:31 +02:00
13 líneas
250 B
C
13 líneas
250 B
C
#include "string.h"
|
|
|
|
int strlen(char *s){
|
|
int len = 0;
|
|
while(*(s++)) len++;
|
|
return len;
|
|
}
|
|
|
|
int strcmp(char *s1, char *s2){
|
|
while(*s1 && (*s1 == *s2)) {s1++; s2++;}
|
|
return *(const unsigned char *)s1 - *(const unsigned char *)s2;
|
|
}
|