1#include <stdio.h>
2#include <unistd.h>
3
4int main(int argc, char **argv) {
5 FILE *f = fopen(filename: argv[1], modes: "wx");
6 if (f) {
7 fputs(s: "\n", stream: f);
8 fflush(stream: f);
9 fclose(stream: f);
10 } else {
11 return 1;
12 }
13
14 pause();
15 return 0;
16}
17

source code of lldb/test/API/commands/platform/sdk/main.c