clippy command works
This commit is contained in:
parent
5fcbdb0b19
commit
f4f5f027f2
3 changed files with 23 additions and 7 deletions
12
src/string.c
Normal file
12
src/string.c
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue