1991-04-14 03:22:02 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
int
|
|
|
|
main()
|
|
|
|
{
|
|
|
|
int ch;
|
|
|
|
ch = getchar();
|
|
|
|
printf("/* Generated through mkscript */\n");
|
1991-04-23 15:59:24 +00:00
|
|
|
printf("\"{ \\\n");
|
1991-04-14 03:22:02 +00:00
|
|
|
while (ch != EOF) {
|
1991-04-23 15:59:24 +00:00
|
|
|
if (ch == '\"') {
|
|
|
|
putchar('\\');
|
|
|
|
putchar('\"');
|
|
|
|
}
|
|
|
|
else { if (ch == '\n') {
|
1991-04-14 03:22:02 +00:00
|
|
|
putchar(' ');
|
|
|
|
putchar('\\');
|
|
|
|
}
|
|
|
|
putchar(ch);
|
1991-04-23 15:59:24 +00:00
|
|
|
}
|
1991-04-14 03:22:02 +00:00
|
|
|
ch = getchar();
|
|
|
|
}
|
1991-04-23 15:59:24 +00:00
|
|
|
printf("}\"\n");
|
1991-04-14 03:22:02 +00:00
|
|
|
return 0;
|
|
|
|
}
|