shithub: scc

ref: be49f37bb7908872c0b9b1bee44bfde99ba73f13
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;
}