mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-03 04:12:10 +08: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;
|
|
}
|