cnping

Minimal Graphical Ping Tool
git clone https://git.sinitax.com/cnlohr/cnping
Log | Files | Refs | Submodules | README | LICENSE | sfeed.txt

commit 829ca14f5de5bd195080f4f01d1f67ae0f1221c4
parent 64e168daba0c9e52efbb298d235df974c14adc7a
Author: cnlohr <lohr85@gmail.com>
Date:   Thu, 26 Sep 2019 21:20:53 -0400

Add version number, see Issue #60 for discussion.

Diffstat:
Mcnping.c | 10++++++----
Mcnping.exe | 0
2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/cnping.c b/cnping.c @@ -1,4 +1,6 @@ -//Copyright (c) 2011-2014 <>< Charles Lohr - Under the MIT/x11 or NewBSD License you choose. +//Copyright (c) 2011-2019 <>< Charles Lohr - Under the MIT/x11 or NewBSD License you choose. + +#define VERSION "1.0-pre" #include <stdio.h> #include <stdlib.h> @@ -692,7 +694,7 @@ int main( int argc, const char ** argv ) if( title[0] == 0 ) { - sprintf( title, "%s - cnping", pinghost ); + sprintf( title, "%s - cnping "VERSION, pinghost ); } if( GuiYScaleFactor > 0 ) @@ -708,9 +710,9 @@ int main( int argc, const char ** argv ) if( displayhelp ) { #ifdef WIN32 - ERRM( "Need at least a host address to ping.\n" ); + ERRM( "cnping "VERSION" Need at least a host address to ping.\n" ); #else - ERRM( "Usage: cnping [host] [period] [extra size] [y-axis scaling] [window title]\n" + ERRM( "cnping "VERSION" Usage: cnping [host] [period] [extra size] [y-axis scaling] [window title]\n" " (-h) [host] -- domain, IP address of ping target for ICMP or http host, i.e. http://google.com\n" " (-p) [period] -- period in seconds (optional), default 0.02 \n" " (-s) [extra size] -- ping packet extra size (above 12), optional, default = 0 \n" diff --git a/cnping.exe b/cnping.exe Binary files differ.