diff options
author | default <nobody@localhost> | 2022-09-19 23:33:11 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2022-09-19 23:33:11 +0200 |
commit | 5e438f8353db63c4dca5037664e10730144b0922 (patch) | |
tree | be3ebbe5123849b984d48fad0bd1ced37011152b /main.c | |
parent | e5167b7b497175261df09a53c58d90395d108eb2 (diff) |
New function user_list().
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -16,5 +16,19 @@ int main(int argc, char *argv[]) user_open(&snac, "mike"); snac_log(&snac, xs_str_new("ok")); + { + xs *list = user_list(); + char *p, *uid; + + p = list; + while (xs_list_iter(&p, &uid)) { + user_open(&snac, uid); + + printf("%s (%s)\n", uid, xs_dict_get(snac.config, "name")); + + user_free(&snac); + } + } + return 0; } |