"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "xstring.c" between
lookat_bekijk-1.4.3.tar.gz and lookat_bekijk-1.4.4.tar.gz

About: Lookat/Bekijk is a program to view Un*x text files and manual pages.

xstring.c  (lookat_bekijk-1.4.3):xstring.c  (lookat_bekijk-1.4.4)
/* /*
* xstring.c - Tired of writing these things over and over again - * xstring.c - Tired of writing these things over and over again -
* *
* Copyright (C) 2001 Staf Wagemakers Belgie/Belgium * Copyright (C) 2001,2015 Staf Wagemakers Belgie/Belgium
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
skipping to change at line 47 skipping to change at line 47
if (*c==ch) { if (*c==ch) {
*c='\0'; *c='\0';
break; break;
} }
} }
++c; ++c;
} while (*c); } while (*c);
} }
void cut_after_quote (char *c) void cut_after_quote (char *c)
{ {
char *cp; char *cp=c;
do { do {
if(*c=='\"') { if(*c=='\"') {
if(c==cp) if(c==cp)
{ {
*c='\0'; *c='\0';
break; break;
} }
if(*(c-1)!='\\') if(*(c-1)!='\\')
{ {
*c='\0'; *c='\0';
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS