From f67f2c3d5b67f54dae2c2c2754f43b4351445c80 Mon Sep 17 00:00:00 2001 From: Anastasis Grammenos Date: Sun, 7 Oct 2018 20:00:43 +0300 Subject: add list_exists fucntion --- src/cklist.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/cklist.h') diff --git a/src/cklist.h b/src/cklist.h index 346e55f..95fd088 100644 --- a/src/cklist.h +++ b/src/cklist.h @@ -48,6 +48,9 @@ extern cklist* list_copy_until(cklist *ckl, int index); * copy from (>=) until (<) */ extern cklist* list_copy_part(cklist *ckl, int from, int until); +/* return 1 if str exists in the list, 0 otherwise */ +extern int list_exists(cklist *ckl, char *str); + /* rewinds */ extern void list_print_lisp(cklist *ckl); extern void list_print_python(cklist *ckl); -- cgit v1.2.3