|
pinktrace
Version 0.1.3
|
00001 /** 00002 * \file 00003 * 00004 * Example \ref pink-about.c "pink-about.c" . 00005 **/ 00006 00007 /** 00008 * \example pink-about.c 00009 * 00010 * A simple example demonstrating how to use Pink's version macros. 00011 **/ 00012 00013 #include <stdio.h> 00014 #include <stdlib.h> 00015 #include <string.h> 00016 00017 #include <pinktrace/pink.h> 00018 00019 int 00020 main(void) 00021 { 00022 printf("Built using %s %d.%d.%d%s", 00023 PINKTRACE_PACKAGE, 00024 PINKTRACE_VERSION_MAJOR, 00025 PINKTRACE_VERSION_MINOR, 00026 PINKTRACE_VERSION_MICRO, 00027 PINKTRACE_VERSION_SUFFIX); 00028 00029 if (strncmp(PINKTRACE_GIT_HEAD, "", 1)) 00030 printf(" %s", PINKTRACE_GIT_HEAD); 00031 putchar('\n'); 00032 00033 return EXIT_SUCCESS; 00034 }
1.7.5.1