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

The file containing the my_char_is function. More...

#include "my.h"

Functions

int my_char_is (char c, const char *char_list)
 Checks if a char (c) is in a list of chars (char_list)
 

Detailed Description

The file containing the my_char_is function.

Author
Nicolas TORO

Function Documentation

◆ my_char_is()

int my_char_is ( char c,
const char * char_list )

Checks if a char (c) is in a list of chars (char_list)

Parameters
cThe char to check
char_listThe list of chars to check
Returns
int 1 if the char is in the list, 0 otherwise
Author
Nicolas TORO