Lines Matching full:copy
114 char *copy, *expanded, *tofree; in expand_amount() local
117 tofree = copy = strdup(rule); in expand_amount()
118 if (copy == NULL) { in expand_amount()
123 subject = strsep(©, ":"); in expand_amount()
124 subject_id = strsep(©, ":"); in expand_amount()
125 resource = strsep(©, ":"); in expand_amount()
126 action = strsep(©, "=/"); in expand_amount()
127 amount = strsep(©, "/"); in expand_amount()
128 per = copy; in expand_amount()
132 * The "copy" has already been tinkered with by strsep(). in expand_amount()
135 copy = strdup(rule); in expand_amount()
136 if (copy == NULL) { in expand_amount()
140 return (copy); in expand_amount()
179 char *copy, *expanded, *resolved, *tofree; in expand_rule() local
182 tofree = copy = strdup(rule); in expand_rule()
183 if (copy == NULL) { in expand_rule()
188 subject = strsep(©, ":"); in expand_rule()
189 textid = strsep(©, ":"); in expand_rule()
194 if (copy != NULL) in expand_rule()
195 rest = copy; in expand_rule()
309 char *copy, *humanized, buf[6], *tofree; in humanize_amount() local
312 tofree = copy = strdup(rule); in humanize_amount()
313 if (copy == NULL) in humanize_amount()
316 subject = strsep(©, ":"); in humanize_amount()
317 subject_id = strsep(©, ":"); in humanize_amount()
318 resource = strsep(©, ":"); in humanize_amount()
319 action = strsep(©, "=/"); in humanize_amount()
320 amount = strsep(©, "/"); in humanize_amount()
321 per = copy; in humanize_amount()
462 char *copy, *humanized, buf[6], *tofree; in humanize_usage_amount() local
465 tofree = copy = strdup(usage); in humanize_usage_amount()
466 if (copy == NULL) in humanize_usage_amount()
469 resource = strsep(©, "="); in humanize_usage_amount()
470 amount = copy; in humanize_usage_amount()
497 char *copy, *outbuf = NULL, *tmp; in show_usage() local
520 copy = outbuf; in show_usage()
521 while ((tmp = strsep(©, ",")) != NULL) { in show_usage()