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