X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=daemon%2Futils.c;fp=daemon%2Futils.c;h=8f66370a0529e6cfa9e242418202d0bb4779efe7;hb=a2761258409c929d70fc23735dc7c1c47fe296c4;hp=11759704b5d306be78abe1b10dd935eb8ccabde5;hpb=565006d1a65a2d81e93215da8501df3791fa37a7;p=doldaconnect.git diff --git a/daemon/utils.c b/daemon/utils.c index 1175970..8f66370 100644 --- a/daemon/utils.c +++ b/daemon/utils.c @@ -777,3 +777,13 @@ void freewcspair(struct wcspair *pair, struct wcspair **list) free(pair->val); free(pair); } + +wchar_t *wpfind(struct wcspair *list, wchar_t *key) +{ + for(; list != NULL; list = list->next) + { + if(!wcscmp(list->key, key)) + return(list->val); + } + return(NULL); +}