42sh 1.0.0
Create a shell in C
Loading...
Searching...
No Matches
my_str_is.c File Reference

The file containing the my_str_is function. More...

#include "my.h"

Functions

int my_str_is (char *str, const char *char_list)
 Checks if a string (str) is composed of characters in the characters list (char_list) or 0 if not.
 

Detailed Description

The file containing the my_str_is function.

Author
Nicolas TORO

Function Documentation

◆ my_str_is()

int my_str_is ( char * str,
const char * char_list )

Checks if a string (str) is composed of characters in the characters list (char_list) or 0 if not.

Parameters
strThe string to check
Returns
int 1 if the string is composed of characters in the characters list (char_list), 0 otherwise
Author
Nicolas TORO