Skip to content

Commit

Permalink
Merge pull request #68 from sadeem-albir/patch-9
Browse files Browse the repository at this point in the history
Update strend.c
  • Loading branch information
ohkimur authored Apr 1, 2024
2 parents 95cd10e + a8d217c commit 5daa9d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapter_5/exercise_5_04/strend.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ int strend(char *s, char *t)
size_t t_length = strlen(t);

// Move the s & t pointer to the end of the corresponding strings.
s += s_length;
t += t_length;
s += s_length - 1;
t += t_length - 1;

// Check backwards if each character from string t occurs in the corresonding
// location from the string s.
Expand Down

0 comments on commit 5daa9d8

Please sign in to comment.