shithub: scc

ref: f5b786d721fb88f375f21b40678c046d3732e8ca
dir: /lib/newitem.c/

View raw version
#include "../inc/cc.h"

char **
newitem(char **array, int num, char *item)
{
	char **ar = xrealloc(array, (num + 1) * sizeof(char **));

	ar[num] = item;

	return ar;
}