NULL proctect ft_strchr

This commit is contained in:
Jack Halford 2017-02-20 16:43:41 +01:00
parent 33de3ffa4f
commit 6bfeb0e282
5 changed files with 7 additions and 5 deletions

View file

@ -6,7 +6,7 @@
# By: jhalford <jack@crans.org> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/02/07 16:09:36 by jhalford #+# #+# #
# Updated: 2017/02/17 17:31:38 by jhalford ### ########.fr #
# Updated: 2017/02/19 05:42:56 by jhalford ### ########.fr #
# #
# **************************************************************************** #

View file

@ -6,7 +6,7 @@
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/12/13 12:16:31 by jhalford #+# #+# */
/* Updated: 2017/02/09 17:34:47 by jhalford ### ########.fr */
/* Updated: 2017/02/19 05:50:12 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */

View file

@ -6,7 +6,7 @@
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/03 14:57:53 by jhalford #+# #+# */
/* Updated: 2016/11/03 15:07:30 by jhalford ### ########.fr */
/* Updated: 2017/02/20 16:43:10 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */
@ -16,6 +16,8 @@ char *ft_strchr(const char *s, int c)
{
char *a;
if (!s)
return (NULL);
a = (char *)s;
while (*a)
{

View file

@ -6,7 +6,7 @@
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/03 14:58:00 by jhalford #+# #+# */
/* Updated: 2016/12/07 17:14:22 by jhalford ### ########.fr */
/* Updated: 2017/02/19 05:47:47 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */

View file

@ -6,7 +6,7 @@
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/03 14:58:18 by jhalford #+# #+# */
/* Updated: 2017/01/22 17:46:33 by jhalford ### ########.fr */
/* Updated: 2017/02/19 05:50:20 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */