Stringzz
- The program take any length of input from
stdin, the input buffer is initially a pointer toNULL, will be allocated a pointer to a new buffer bygetline. - The flag is stored in heap.
printMessage1to callprintMessage2, which callsprintMessage3to print the input withprintf, as it simply pass whatever we input toprintf, we can use%n$sto jump to thenthlayer of stack to print the string.