"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tools/cols.c" between
discount-2.2.4.tar.bz2 and discount-2.2.6.tar.bz2

About: Discount is an implementation of the "Markdown" markup language (written in C).

cols.c  (discount-2.2.4.tar.bz2):cols.c  (discount-2.2.6.tar.bz2)
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
int
main(argc, argv) main(argc, argv)
char **argv; char **argv;
{ {
register c; register int c;
int xp; int xp;
int width; int width;
if ( argc != 2 ) { if ( argc != 2 ) {
fprintf(stderr, "usage: %s width\n", argv[0]); fprintf(stderr, "usage: %s width\n", argv[0]);
exit(1); exit(1);
} }
else if ( (width=atoi(argv[1])) < 1 ) { else if ( (width=atoi(argv[1])) < 1 ) {
fprintf(stderr, "%s: please set width to > 0\n", argv[0]); fprintf(stderr, "%s: please set width to > 0\n", argv[0]);
exit(1); exit(1);
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)