Files
RedBear-OS/tests/alloca.c
T
2018-11-23 21:31:09 +01:00

13 lines
207 B
C

#include <alloca.h>
#include <stdio.h>
#include <string.h>
int main(int argc, char ** argv) {
char *str = (char *) alloca(17);
memset(str, 'A', 16);
str[16] = '\0';
printf("%s\n", str);
}