MCPcopy Create free account
hub / github.com/eggert/tz / group_option

Function group_option

zic.c:872–886  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

870 exit(status);
871}
872
873static void
874group_option(char const *arg)
875{
876 if (*arg) {
877 if (output_group != no_gid) {
878 fprintf(stderr, _("multiple groups specified"));
879 exit(EXIT_FAILURE);
880 } else {
881 struct group *gr = getgrnam(arg);
882 output_group = (gr ? gr->gr_gid
883 : arg2num(arg, 10, min(GID_T_MAX, ULONG_MAX),
884 N_("%s: invalid group: %s\n")));
885 }
886 }
887}
888
889static void

Callers 1

mainFunction · 0.85

Calls 1

arg2numFunction · 0.85

Tested by

no test coverage detected