diff options
author | Louie S <louie@example.com> | 2022-12-02 16:04:43 -0800 |
---|---|---|
committer | Louie S <louie@example.com> | 2023-06-29 17:15:37 -0700 |
commit | 58a911618ad82507de8319615309a85341bdc014 (patch) | |
tree | 2c8984ea6559cfc37a5cfe1d5bc7cca23d48abe8 /src/group.c |
First commit
Diffstat (limited to 'src/group.c')
-rw-r--r-- | src/group.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/group.c b/src/group.c new file mode 100644 index 0000000..db387e0 --- /dev/null +++ b/src/group.c @@ -0,0 +1,27 @@ +#include <string.h> + +#include "group.h" + +char *group_get_name(Group *g) { + return g->name; +} + +char *group_get_desc(Group *g) { + return g->desc; +} + +char *group_get_url(Group *g) { + return g->url; +} + +void group_set_name(Group *g, char *name) { + strcpy(g->name, name); +} + +void group_set_desc(Group *g, char *desc) { + strcpy(g->desc, desc); +} + +void group_set_url(Group *g, char *url) { + strcpy(g->url, url); +} |