/[darkstattype]/trunk/darkstattype.c
ViewVC logotype

Diff of /trunk/darkstattype.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 3 by trond, 2014-03-19T08:49:18Z Revision 4 by trond, 2014-03-19T08:51:24Z
# Line 85  void show_version(void) Line 85  void show_version(void)
85  } // main()  } // main()
86    
87  void show_usage(int exitcode)  void show_usage(int exitcode)
88  {  {
89    fprintf((exitcode == EXIT_SUCCESS) ? stdout : stderr,    fprintf((exitcode == EXIT_SUCCESS) ? stdout : stderr,
90      "Usage: %s [-h] [-v] filename\n"      "Usage: %s [-h] [-v] filename\n"
91      " E.g.: %s darkstat.db\n",      " E.g.: %s darkstat.db\n",
92      progname, progname);      progname, progname);
93    
94    exit(exitcode);    exit(exitcode);
95  } // show_usage()  } // show_usage()
96    
97  void show_version(void)  void show_version(void)
98  {  {
99    puts("darkstattype 1.0");    puts("darkstattype 1.0");
100      puts("$Ximalas$");
101    puts("");    puts("");
102    
103    puts("Copyright © 2014, Trond Endrestøl <Trond.Endrestol@ximalas.info>");    puts("Copyright © 2014, Trond Endrestøl <Trond.Endrestol@ximalas.info>");
104    puts("All rights reserved.");    puts("All rights reserved.");
105    puts("");    puts("");
106    puts("Redistribution and use in source and binary forms, with or without");    puts("Redistribution and use in source and binary forms, with or without");
107    puts("modification, are permitted provided that the following conditions are met:");    puts("modification, are permitted provided that the following conditions are met:");
108    puts("");    puts("");
109    puts("1. Redistributions of source code must retain the above copyright notice, this");    puts("1. Redistributions of source code must retain the above copyright notice, this");
110    puts("   list of conditions and the following disclaimer.");    puts("   list of conditions and the following disclaimer.");
111    puts("2. Redistributions in binary form must reproduce the above copyright notice,");    puts("2. Redistributions in binary form must reproduce the above copyright notice,");
112    puts("   this list of conditions and the following disclaimer in the documentation");    puts("   this list of conditions and the following disclaimer in the documentation");
113    puts("   and/or other materials provided with the distribution.");    puts("   and/or other materials provided with the distribution.");
114    puts("");    puts("");
115    puts("THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND");    puts("THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND");


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

svn@ximalas.info
ViewVC Help
Powered by ViewVC 1.3.0-dev