style: clang-format on all files

This commit is contained in:
2024-09-18 22:30:11 +02:00
parent 083468240d
commit 9b3a6cb5a4
15 changed files with 104 additions and 111 deletions

View File

@ -2,5 +2,5 @@
int atoi(const char *str)
{
return atoll(str);
return atoll(str);
}

View File

@ -2,5 +2,5 @@
long atol(const char *str)
{
return atoll(str);
return atoll(str);
}

View File

@ -2,12 +2,12 @@
long long atoll(const char *str)
{
const char *start = str;
long long ret = 0;
const char *start = str;
long long ret = 0;
while (*start != '\0') {
if (isdigit(*str))
ret = ret * 10 + *str - '0';
}
return ret;
while (*start != '\0') {
if (isdigit(*str))
ret = ret * 10 + *str - '0';
}
return ret;
}