Files
Astral/src/include/string/strncmp.c
T
Matheus fa1b35bf18 basic apic + fix some stupid issues
created an initial stub implementation of the apic driver, added the madt to acpi, fixed an issue with the strncmp, made the pmm set only free pages rather than used ones
2022-08-05 23:33:54 -03:00

14 lines
193 B
C

#include <stddef.h>
int strncmp(const char *a, const char *b, size_t c){
int diff = 0;
while(c-- && diff == 0)
diff += *a++ - *b++;
return diff;
}