Commit 4fcc763e authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

correction

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 2497
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent d1068656
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: sffxx.cc,v 1.27 2007-09-29 17:45:01 tforb Exp $
* $Id: sffxx.cc,v 1.28 2007-12-17 16:38:28 tforb Exp $
* \author Thomas Forbriger
* \date 21/12/2003
*
......@@ -58,13 +58,16 @@
* reading functions in libsffxx do not respect this
* order. libstuff always writes the FREE block first
* in sff_WOpenFS
* - 17/12/2007 V1.12 - modified output format (printf), since underlying
* Fortran code of libtime does no longer use
* long int
*
* ============================================================================
*/
#define TF_SFFXX_CC_VERSION \
"TF_SFFXX_CC V1.11"
"TF_SFFXX_CC V1.12"
#define TF_SFFXX_CC_CVSID \
"$Id: sffxx.cc,v 1.27 2007-09-29 17:45:01 tforb Exp $"
"$Id: sffxx.cc,v 1.28 2007-12-17 16:38:28 tforb Exp $"
#include<sstream>
#include <sffxx.h>
......@@ -156,7 +159,7 @@ c S there folloes a SRCE line
int yeardigits, century;
century=int(date.year()/100);
yeardigits=date.year()-100*century;
sprintf(stamp, "%2.2i%2.2li%2.2li.%2.2li%2.2li%2.2li",
sprintf(stamp, "%2.2i%2.2i%2.2i.%2.2i%2.2i%2.2i",
yeardigits, date.month(), date.day(),
date.hour(), date.minute(), date.second());
timestamp=std::string(stamp);
......@@ -291,7 +294,7 @@ c the geoid and is measured in meters.
century=int(date.year()/100);
yeardigits=date.year()-100*century;
sprintf(charline, "%-4s %-20s %1c %15.6f%15.6f%15.6f "
"%2.2i%2.2li%2.2li %2.2li%2.2li%2.2li.%3.3li\n",
"%2.2i%2.2i%2.2i %2.2i%2.2i%2.2i.%3.3i\n",
SRCE::LINEID,
type.c_str(),
coosysID(cs), cx, cy, cz,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment