brintos

brintos / llvm-project-archived public Read only

0
0
Text · 387 B · 226cb60 Raw
16 lines · c
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("abc");8  printf("def");9  printf("ghi\n");10  printf("hello world\n"); // breakpoint 111  // Ensure the OutputRedirector does not consume the programs \0\0 output.12  char buf[] = "finally\0";13  write(STDOUT_FILENO, buf, sizeof(buf));14  return 0;15}16