summaryrefslogtreecommitdiff
path: root/group.c
diff options
context:
space:
mode:
Diffstat (limited to 'group.c')
-rw-r--r--group.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/group.c b/group.c
index be2594d..7c6bc03 100644
--- a/group.c
+++ b/group.c
@@ -22,6 +22,7 @@ void group_add(char *gname, ENTRY *addme);
GROUP **get_groups();
char *get_gname(GROUP *g);
char *get_gprog(GROUP *g);
+void set_gprog(GROUP *g, char *p);
ENTRY *get_ghead(GROUP *g);
int get_ecount(GROUP *g);
int get_gcount();
@@ -128,6 +129,11 @@ char *get_gprog(GROUP *g){
return g->program;
}
+void set_gprog(GROUP *g, char *p){
+ assert(g != NULL);
+ strcpy(g->program, p);
+}
+
ENTRY *get_ghead(GROUP *g){
assert(g != NULL);
return g->head;