Changeset 17 in ntrip for trunk/ntripclient


Ignore:
Timestamp:
Apr 19, 2005, 1:28:10 PM (15 years ago)
Author:
stoecker
Message:

better output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ntripclient/NtripLinuxClient.c

    r14 r17  
    11/*
    22  Easy example NTRIP client for Linux/Unix.
    3   $Id: NtripLinuxClient.c,v 1.9 2005/02/15 16:15:33 stoecker Exp $
     3  $Id: NtripLinuxClient.c,v 1.10 2005/02/16 15:23:36 stoecker Exp $
    44  Copyright (C) 2003-2005 by Dirk Stoecker <soft@dstoecker.de>
    55   
     
    3838
    3939/* CVS revision and version */
    40 static char revisionstr[] = "$Revision: 1.9 $";
    41 static char datestr[]     = "$Date: 2005/02/15 16:15:33 $";
     40static char revisionstr[] = "$Revision: 1.10 $";
     41static char datestr[]     = "$Date: 2005/02/16 15:23:36 $";
    4242
    4343struct Args
     
    259259          if(numbytes < 12 || strncmp("ICY 200 OK\r\n", buf, 12))
    260260          {
    261             fprintf(stderr, "Could not get the requested data\n");
     261            fprintf(stderr, "Could not get the requested data: ");
     262            for(k = 0; k < numbytes && buf[k] != '\n' && buf[k] != '\r'; ++k)
     263            {
     264              fprintf(stderr, "%c", isprint(buf[k]) ? buf[k] : '.');
     265            }
     266            fprintf(stderr, "\n");
    262267            exit(1);
    263268          }
Note: See TracChangeset for help on using the changeset viewer.