aboutsummaryrefslogtreecommitdiffstats
path: root/set.c
diff options
context:
space:
mode:
Diffstat (limited to 'set.c')
-rw-r--r--set.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/set.c b/set.c
index 184c3243..6f09843b 100644
--- a/set.c
+++ b/set.c
@@ -167,6 +167,15 @@ void set_del( set_t **head, char *key )
}
}
+void set_reset( set_t **head, char *key )
+{
+ set_t *s;
+
+ s = set_find( head, key );
+ if( s )
+ set_setstr( head, key, s->def );
+}
+
char *set_eval_int( set_t *set, char *value )
{
char *s = value;