C++ common classes
General purpose classes for use across projects (Apache license)
copyright.h
Go to the documentation of this file.
00001 /* 
00002  * File:   copyright.h
00003  * Author: rbross
00004  *
00005  * Created on September 22, 2010, 4:42 PM
00006  */
00007 
00008 #ifndef COPYRIGHT_H
00009 #define COPYRIGHT_H
00010 
00011 #define COPYRIGHT   "(c) 2010 SilverSpore"
00012 
00013 void DisplayCopyright();
00014 
00016 void DisplayCopyright(char *pProgName)
00017 {
00018     char *pLastSlash = ::strrchr(pProgName, '/');
00019     if (!pLastSlash)
00020         pLastSlash = pProgName;
00021     else
00022         pLastSlash++;
00023     ::printf("%s\n%s\n", pLastSlash, COPYRIGHT);
00024     exit(0);
00025 }
00026 
00027 
00028 #endif  /* COPYRIGHT_H */
00029 
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines