From 7985c945cf11c50559daa8bdb03f9a023deb2da3 Mon Sep 17 00:00:00 2001 From: louie Date: Fri, 26 Jun 2020 17:26:04 -0700 Subject: Basic ability to launch entries --- group.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'group.c') 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; -- cgit