fix: conway, words

This commit is contained in:
xamidev
2024-08-24 20:30:14 +02:00
parent 75d120efcd
commit 2893e75ad1
8 changed files with 196 additions and 18 deletions

View File

@@ -74,3 +74,15 @@ char* strtok(char* str, const char* delimiter)
return token_start;
}
int atoi(char* str)
{
int result = 0;
for (int i=0; str[i] != '\0'; i++)
{
result = result*10 + str[i] - '0';
}
return result;
}

View File

@@ -9,5 +9,6 @@
int strlen(const char* str);
int strcmp(const char* str1, const char* str2);
char* strtok(char* str, const char* delimiter);
int atoi(char* str);
#endif