File: u2d.c

package info (click to toggle)
openvpn 2.2.1-8%2Bdeb7u3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 8,960 kB
  • sloc: ansic: 60,297; sh: 5,704; python: 631; makefile: 282; perl: 242; awk: 13
file content (20 lines) | stat: -rwxr-xr-x 257 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdio.h>

int
main (int argc, char *argv[])
{
  int c;
  int enable = 1;

  while ((c = getchar()) != EOF)
    {
#if 0
      if (c == '\r')
	enable = 0;
      if (enable && c == '\n')
	putchar ('\r');
#endif
      putchar (c);
    }
  return 0;
}