mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-05 02:47:05 +00:00
26 lines
377 B
C
26 lines
377 B
C
#include <stdio.h>
|
|
|
|
int
|
|
main()
|
|
{
|
|
int ch;
|
|
ch = getchar();
|
|
printf("/* Generated through mkscript */\n");
|
|
printf("\"{ \\\n");
|
|
while (ch != EOF) {
|
|
if (ch == '\"') {
|
|
putchar('\\');
|
|
putchar('\"');
|
|
}
|
|
else { if (ch == '\n') {
|
|
putchar(' ');
|
|
putchar('\\');
|
|
}
|
|
putchar(ch);
|
|
}
|
|
ch = getchar();
|
|
}
|
|
printf("}\"\n");
|
|
return 0;
|
|
}
|