Skip to content

Commit 60fe24d

Browse files
authored
Update strncmp.c
1 parent 40937ff commit 60fe24d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapter_5/exercise_5_05/strncmp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ int strcmp_ptr(char *s, char *t, size_t n)
4444

4545
// If the t string contains more character than s, then the s char will
4646
// become '\0' before t char. If this happen then the s char will be 0 and
47-
// t char will be whatever ascii_value it's holding, so the final result will be 0 - t_ascii_value.
47+
// t char will be whatever ascii_value is holding, so the final result will be 0 - t_ascii_value.
4848

4949
return *s - *t;
5050
}

0 commit comments

Comments
 (0)