#include <string.h>
#include <stdlib.h>
#include "extern.h"
    
log()
   {  int i;
	  long hispos;
      char ccnt[4];
      fp1 = fopen(LOG_FIL,"a");
      nwdate();
      fprintf(fp1,"%s %s %s %s %3d %3d\n",statdate,stattime,nowtime,hiscall,sndcnt,rcvcnt);
      fclose(fp1);

/*     
      fp1 = fopen(USER_FIL,"r+");
      while(1)
      {  if ( fgets(fbuff,255,fp1) == NULL ) break;
         if ( strncmp(fbuff,hiscall,6) )     continue;
         substr(fbuff,31,3,ccnt);
         i = atoi(ccnt);
         
         i++;
         hispos = ftell(fp1); hispos -= 24L;
         fseek(fp1,hispos,0);
         sprintf(fbuff,"%s %s %3d",statdate,stattime,i);
         fputs(fbuff,fp1);
         break;
      }
      fclose(fp1);                  
*/    

      return(0);
   }
