Skip to content

Commit a511e9f

Browse files
Code: added code for 2-strchr.c
1 parent eb49972 commit a511e9f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

0x07-pointers_arrays_strings/2-strchr.c

+2
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,6 @@ char *_strchr(char *s, char c)
2626
return (s);
2727
}
2828
}
29+
30+
return ('\0');
2931
}

0 commit comments

Comments
 (0)