2
* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
4
* This file is free software; as a special exception the author gives
5
* unlimited permission to copy and/or distribute it, with or without
6
* modifications, as long as this notice is preserved.
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
10
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16
main(int argc, char **argv)
22
fprintf(stderr, "no arguments, please\n");
27
while( (c=getchar()) != EOF ) {
29
if( c == '\r' && lc == ' ' )
30
fprintf(stderr,"SP,CR at %d\n", off );
31
if( c == '\n' && lc == ' ' )
32
fprintf(stderr,"SP,LF at %d\n", off );
34
if( c == '\n' && lc == '\r' )
36
else if( c == '\n' ) {
40
else if( c != '\n' && lc == '\r' ) {