Skip to content

Commit

Permalink
fix: restore variable
Browse files Browse the repository at this point in the history
  • Loading branch information
hozlucas28 committed Oct 13, 2024
1 parent 320bde2 commit 09b7ed6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/utilities.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,7 @@ char** new2DArray(int rows, int cols) {

void sleep(int miliseconds) {
clock_t startTime = clock();
while (clock() < (startTime + miliseconds))
;
while (clock() < (startTime + miliseconds));
}

int strcmpi(const char* str01, const char* str02) {
Expand Down Expand Up @@ -189,6 +188,7 @@ void trimRightStr(char* str) {

for (i = strLength - 1; i > 0; i--) {
if (!isspace(*(str + i))) break;
counter++;
}

*(str + strLength - counter) = '\0';
Expand Down

0 comments on commit 09b7ed6

Please sign in to comment.