[Libphidget-cvs-commits] CVS: libphidget/src/examples phidget_cpp.cc,1.3,1.4
Status: Alpha
Brought to you by:
jstrohm
From: Jack S. <js...@us...> - 2002-09-12 01:31:21
|
Update of /cvsroot/libphidget/libphidget/src/examples In directory usw-pr-cvs1:/tmp/cvs-serv20368 Modified Files: phidget_cpp.cc Log Message: Properly prints out the current version number of the example Index: phidget_cpp.cc =================================================================== RCS file: /cvsroot/libphidget/libphidget/src/examples/phidget_cpp.cc,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** phidget_cpp.cc 12 Sep 2002 00:24:29 -0000 1.3 --- phidget_cpp.cc 12 Sep 2002 01:31:18 -0000 1.4 *************** *** 17,20 **** --- 17,22 ---- CUID workingUID; + static const char *revision="$Revision$"; + /* class CMyServoController : public CServoController *************** *** 375,381 **** { try { // What we are printf("phidgets: a command line interface utility\n"); ! printf("version $Revision$\n\n"); // No arguments --- 377,388 ---- { try { + char adjusted_version[64]; + memcpy(adjusted_version,revision+11,strlen(revision)-11-2); + // What we are printf("phidgets: a command line interface utility\n"); ! ! // Get the version number ! printf("Version %s\n",adjusted_version); // No arguments |