mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-29 13:48:21 +00:00
Initial commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#include <stddef.h>
|
||||
|
||||
int strncmp(const char *a, const char *b, size_t c){
|
||||
|
||||
int diff = 0;
|
||||
|
||||
while(c--)
|
||||
diff += *a++ - *b++;
|
||||
|
||||
|
||||
return diff;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user