X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=stra.h;h=fad9501e21a68aa1c71173b04548dd3a7ab15947;hb=e6bad58d5fb98b9170a75c401b059fdb6b2dce81;hp=a2f43d61a5ac6def5f5e814d89413c71ec783cee;hpb=ebbf97d1d30077057f22a808dfc4d02ce07ff338;p=repo_shell.git diff --git a/stra.h b/stra.h index a2f43d6..fad9501 100644 --- a/stra.h +++ b/stra.h @@ -37,6 +37,9 @@ void stra_destroy(stra_t *stra); /* Add an item to the end of the string array, returning its ele# */ int stra_add(stra_t *stra, const char *item); +/* Return the ele# of the first string matching item, which may have * */ +int stra_match(stra_t *stra, const char *item); + /* Return the ele# of the first string matching item */ int stra_find(stra_t *stra, const char *item);