diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-09 17:43:10 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-09 17:43:10 -0400 |
| commit | 3bb54ccceceeb9b95336c561d9ed7731159c7cce (patch) | |
| tree | fa14c5e9e168cf60d3d9274839a182b301146313 /ws2a | |
| parent | 7b2d648fba8bb714602e16e3fd581ce6e93e10a5 (diff) | |
| download | webpage-3bb54ccceceeb9b95336c561d9ed7731159c7cce.tar.gz webpage-3bb54ccceceeb9b95336c561d9ed7731159c7cce.tar.bz2 webpage-3bb54ccceceeb9b95336c561d9ed7731159c7cce.zip | |
Trying something else to get rid of extra character
Diffstat (limited to 'ws2a')
| -rw-r--r-- | ws2a/showbug.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/ws2a/showbug.c b/ws2a/showbug.c index 266e6ec..27a01e6 100644 --- a/ws2a/showbug.c +++ b/ws2a/showbug.c @@ -40,19 +40,8 @@ int main(){ } while(!feof(bugfile)){ char c = fgetc(bugfile); - if(c == '\n'){ - }else if(c == '&'){ - printf("&"); - }else if(c == '\"'){ - printf("""); - }else if(c == '\''){ - printf("'"); - }else if(c == '<'){ - printf("<"); - }else if(c == '>'){ - printf(">"); - }else if(c == '\\'){ - printf("/"); + if(feof(bugfile)){ + break; }else{ putchar(c); } |
