summaryrefslogtreecommitdiff
path: root/src/bin2char.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin2char.c')
-rw-r--r--src/bin2char.c26
1 files changed, 22 insertions, 4 deletions
diff --git a/src/bin2char.c b/src/bin2char.c
index 436839bb..f1c809c8 100644
--- a/src/bin2char.c
+++ b/src/bin2char.c
@@ -1,8 +1,27 @@
+/***************************************************************************
+ * Copyright (C) 2005 by Dominic Rath *
+ * Dominic.Rath@gmx.de *
+ * *
+ * 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 2 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; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ ***************************************************************************/
+
#include <stdio.h>
#include <stdlib.h>
-int
-main(int argc, char **argv)
+int main(int argc, char **argv)
{
int c;
unsigned int n;
@@ -24,7 +43,6 @@ main(int argc, char **argv)
if ((++n % 16) == 0)
fprintf(stdout, "\n");
}
- fprintf(stdout, "0 /* terminate with a nil */};\n");
- fprintf(stdout, "unsigned int %s_len = %u;\n", name, n);
+ fprintf(stdout, "0 /* terminate with a null */};\n");
return 0;
}