Vhex-kernel/src/string/strcmp.c
yann MAGNIN 7a0e037705 All instructions can be traducted "on-the-fly". (except FPU instruction because
they do not exist on SH3 mpu based).
Write "driver" for getkey Casio's function for get the key's "status" (caps-lock, letter, number).
Add commands and modes handling.
Add somes commands.
Add somes units tests.
2019-06-10 02:14:49 +02:00

13 lines
232 B
C

#include <string.h>
__attribute__((weak)) int strcmp(const char *s1, const char *s2)
{
if (s1 == NULL || s2 == NULL)
return (0);
while (*s1 != '\0' && *s2 != '\0' && *s1 == *s2){
s1 += 1;
s2 += 1;
}
return (*s1 - *s2);
}