#include "copyright.h"
#include <stdio.h>
#include <ctype.h>
Include dependency graph for unsplit.cpp:
Go to the source code of this file.
Functions | |
int | main (int argc, char *argv[]) |
int main | ( | int | argc, | |
char * | argv[] | |||
) |
Definition at line 11 of file unsplit.cpp.
00012 { 00013 int c, numcr; 00014 00015 while ((c = getchar()) != EOF) 00016 { 00017 if (c == '\\') 00018 { 00019 numcr = 0; 00020 do 00021 { 00022 c = getchar(); 00023 if (c == '\n') 00024 numcr++; 00025 } while ((c != EOF) && isspace(c)); 00026 if (numcr > 1) 00027 { 00028 putchar('\n'); 00029 } 00030 ungetc(c, stdin); 00031 } 00032 else 00033 { 00034 putchar(c); 00035 } 00036 } 00037 return 0; 00038 }