diff options
author | Anastasis Grammenos <anastasis.gramm2@gmail.com> | 2018-10-07 20:00:43 +0300 |
---|---|---|
committer | Anastasis Grammenos <anastasis.gramm2@gmail.com> | 2018-10-07 20:00:43 +0300 |
commit | f67f2c3d5b67f54dae2c2c2754f43b4351445c80 (patch) | |
tree | a980a065833e49d84ddd56994b1720adf100a06e /src/cklist.h | |
parent | 02aa2496d9eaf5c6f1234df1f91b8e312ee10022 (diff) | |
download | ck-f67f2c3d5b67f54dae2c2c2754f43b4351445c80.tar.gz ck-f67f2c3d5b67f54dae2c2c2754f43b4351445c80.tar.bz2 ck-f67f2c3d5b67f54dae2c2c2754f43b4351445c80.zip |
add list_exists fucntion
Diffstat (limited to 'src/cklist.h')
-rw-r--r-- | src/cklist.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); |