Logo
Explore Help
Sign In
xnoe/xnoe-os
1
0
Fork 0
You've already forked xnoe-os
Code Issues Pull Requests Projects Releases Wiki Activity
xnoe-os/src/bootstage2/strings.c
Xnoe 0fc40ad5e4
Add system calls for more file system related functionality. Add ls command to world.c. Remove and reorganise certain source code files. Update terminal to no longer have two copies of ANSI escape code handling between write and printf. Massively simplify my printf function. Combine io and ioports.
2022-04-12 03:42:13 +01:00

11 lines
187 B
C
Raw Blame History

#include "strings.h"
bool strcmp(char* a, char* b, int max) {
int index = 0;
while (index < max) {
if (a[index] != b[index])
return false;
index++;
}
return true;
}
Reference in New Issue View Git Blame Copy Permalink
Powered by Gitea Version: 1.23.3 Page: 39ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API