shithub: scc

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