summaryrefslogblamecommitdiffstats
path: root/lib/inarray.c
blob: e45137a8dcbb0846709e58e5421f75e1d60d7879 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                           
int char_in_array(char val, char * arr) {
	int i;
	for(i = 0; i < sizeof(arr) / sizeof(arr[0]); i++) {
		if(arr[i] == val) {
			return 1;
		}
	}
	return 0;
}