Dolda2000 GitWeb
/
doldaconnect.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add wpfind.
[doldaconnect.git]
/
daemon
/
utils.c
diff --git
a/daemon/utils.c
b/daemon/utils.c
index
1175970
..
8f66370
100644
(file)
--- 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);
+}