#include "alloca.h" #include main() { char *p = alloca(16); strcpy(p,"123456789012345"); printf("p is %s\n", p); char *q = alloca(0); if (q) printf("Whups!"); else printf("Hooray, got that right.\n"); char *demo = "This is a test. This is only a test.\n"; printf("Test: %s\n", strcpy(alloca(strlen(demo)+1),demo) ); }