aboutsummaryrefslogtreecommitdiff
path: root/ld/mkscript.c
blob: 59a8e87467242fd048ed1465ce0c26a09ef1231c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#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;
}