Corewar documentation 1.0.0
Loading...
Searching...
No Matches
my_str_contains.c File Reference

The file containing the my_str_contains function. More...

#include "my.h"

Functions

int my_str_contains (char *str, char *char_list)
 Checks if a string (str) contains a character in a list of characters (char_list)
 

Detailed Description

The file containing the my_str_contains function.

Author
Nicolas TORO

Function Documentation

◆ my_str_contains()

int my_str_contains ( char * str,
char * char_list )

Checks if a string (str) contains a character in a list of characters (char_list)

Parameters
strThe string to check
char_listThe list of characters to check
Returns
int 1 if the string contains a character in the list, 0 otherwise
Author
Nicolas TORO