1#include <stdio.h>
2#include <stdlib.h>
3#include <unistd.h>
4
5int main() {
6 // Ensure multiple partial lines are detected and sent.
7 printf(format: "abc");
8 printf(format: "def");
9 printf(format: "ghi\n");
10 printf(format: "hello world\n"); // breakpoint 1
11 // Ensure the OutputRedirector does not consume the programs \0\0 output.
12 char buf[] = "finally\0";
13 write(STDOUT_FILENO, buf: buf, n: sizeof(buf));
14 return 0;
15}
16

source code of lldb/test/API/tools/lldb-dap/output/main.c