1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include <stdio.h> #include <stdlib.h> #include <string.h> #ifndef __FreeBSD__ #include <alloca.h> #endif int main () { char *boo, *foo; boo = (char *) alloca (100); boo[99] = 'a'; foo = (char *) __builtin_alloca (200); foo[44] = 'b'; return 0; }