From 8e3d23b921d9bbcb7c53017bacff8a3050a34b55 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Sat, 27 Jul 2019 06:57:12 +0100 Subject: reorganise code --- main.c | 175 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 175 insertions(+) create mode 100644 main.c (limited to 'main.c') diff --git a/main.c b/main.c new file mode 100644 index 0000000..c0f4b6b --- /dev/null +++ b/main.c @@ -0,0 +1,175 @@ +/* +* +* gramscii: a simple editor for ASCII box-and-arrow charts +* +* Copyright (c) 2019 Vincenzo "KatolaZ" Nicosia +* +* 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 +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. Please see the attached file COPYING. +* Otherwise, please visit . +* +*/ + +#include +#include +#include + +#include "arg.h" +#include "gramscii.h" + + +char *argv0; + +void dump_lines(){ + int i; + for (i=0; i