tgrekov-libft
HIVE libft Oct 2023
Loading...
Searching...
No Matches
ft_strchr.c File Reference

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strchr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/24 16:28:27 by tgrekov #+# #+# */
/* Updated: 2023/11/09 20:10:30 by tgrekov ### ########.fr */
/* */
/* ************************************************************************** */

Definition in file ft_strchr.c.

Go to the source code of this file.

Functions

char * ft_strchr (const char *s, int c)
 Finds first occurence of character c in string s.
 

Function Documentation

◆ ft_strchr()

char * ft_strchr ( const char *  s,
int  c 
)

Finds first occurence of character c in string s.

Check is done as char

Parameters
[in]sNull-terminated string haystack to search
[in]cint needle to find
Return values
char*Pointer to first occurence of needle c in haystack s.
NULL if none is found before the end of the string.

Definition at line 30 of file ft_strchr.c.

Here is the caller graph for this function: