clippy command works

This commit is contained in:
Lauchmelder 2022-01-20 13:06:34 +01:00
parent 5fcbdb0b19
commit f4f5f027f2
3 changed files with 23 additions and 7 deletions

12
src/string.c Normal file
View file

@ -0,0 +1,12 @@
#include "string.h"
int strcmp(const char* str1, const char* str2)
{
while(*str1)
{
int diff = *str1++ - *str2++;
if(diff) return diff;
}
return 0;
}