libft
Functions
ft_strintab.c File Reference
#include "libft.h"
#include <stdio.h>
+ Include dependency graph for ft_strintab.c:

Go to the source code of this file.

Functions

int ft_strintab (const char *str, char *const tab[])
 Checks if a string is in a tab. More...
 

Function Documentation

◆ ft_strintab()

int ft_strintab ( const char *  str,
char *const  tab[] 
)

Checks if a string is in a tab.

Performs lexicographical comparison between a given string and strings contained in a NULL-terminated tab.

Parameters
strThe string to search for.
tabThe NULL-terminated tab to search in.
Returns
1 if the tab contains the string or 0 otherwise.

Definition at line 26 of file ft_strintab.c.