mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-09 08:11:38 +08:00
26 lines
406 B
C
26 lines
406 B
C
#include <config.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include "netcdf.h"
|
|
#include "ncdispatch.h"
|
|
|
|
int
|
|
main(int argc, char** argv)
|
|
{
|
|
const char* url = NULL;
|
|
if(argc == 1) {
|
|
fprintf(stderr,"no path specified");
|
|
printf("%s","");
|
|
exit(1);
|
|
}
|
|
url = NC_findtestserver(argv[1]);
|
|
if(url == NULL)
|
|
url = "";
|
|
printf("%s",url);
|
|
fflush(stdout);
|
|
exit(0);
|
|
}
|
|
|
|
|