12 lines · c
1#include <stdio.h>2#include <stdlib.h>3#include <string.h>4 5int main(int argc, char **argv) {6 7 char *heap_buf = (char *)malloc(80);8 strcpy(heap_buf, "this is a string on the heap");9 10 return 0; // break here11}12 1#include <stdio.h>2#include <stdlib.h>3#include <string.h>4 5int main(int argc, char **argv) {6 7 char *heap_buf = (char *)malloc(80);8 strcpy(heap_buf, "this is a string on the heap");9 10 return 0; // break here11}12