Index: trunk/BNC/RTCM3/rtcm3.cpp
===================================================================
--- trunk/BNC/RTCM3/rtcm3.cpp	(revision 119)
+++ trunk/BNC/RTCM3/rtcm3.cpp	(revision 131)
@@ -51,4 +51,9 @@
       while(int rr = RTCM3Parser(&_Parser)) {
 
+        if (!_Parser.init) {
+          HandleHeader(&_Parser);
+          _Parser.init = 1;
+        }
+
         if (rr == 2) {
           cerr << "No valid RINEX! All values are modulo 299792.458!\n";
Index: trunk/BNC/RTCM3/rtcm3torinex.cpp
===================================================================
--- trunk/BNC/RTCM3/rtcm3torinex.cpp	(revision 119)
+++ trunk/BNC/RTCM3/rtcm3torinex.cpp	(revision 131)
@@ -1,5 +1,5 @@
 /*
   Converter for RTCM3 data to RINEX.
-  $Id: rtcm3torinex.cpp,v 1.6 2006/09/02 12:23:05 mervart Exp $
+  $Id: rtcm3torinex.cpp,v 1.7 2006/09/06 16:13:16 mervart Exp $
 
   Program written bei
@@ -66,6 +66,6 @@
 
 /* CVS revision and version */
-static char revisionstr[] = "$Revision: 1.6 $";
-static char datestr[]     = "$Date: 2006/09/02 12:23:05 $";
+static char revisionstr[] = "$Revision: 1.7 $";
+static char datestr[]     = "$Date: 2006/09/06 16:13:16 $";
 static int stop = 0;
 
@@ -740,8 +740,10 @@
 
 
+#ifndef NO_RTCM3_MAIN
   for(i = 0; i < hdata.numheaders; ++i)
     printf("%s\n", hdata.data.unnamed[i]);
   printf("                                                            "
   "END OF HEADER\n");
+#endif
 }
 
Index: trunk/BNC/RTCM3/rtcm3torinex.h
===================================================================
--- trunk/BNC/RTCM3/rtcm3torinex.h	(revision 119)
+++ trunk/BNC/RTCM3/rtcm3torinex.h	(revision 131)
@@ -100,4 +100,5 @@
 };
 
+void HandleHeader(struct RTCM3ParserData *Parser);
 int RTCM3Parser(struct RTCM3ParserData *handle);
 void HandleByte(struct RTCM3ParserData *Parser, unsigned int byte);
