mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-17 16:50:18 +08:00
adding udf test
This commit is contained in:
parent
8d08b8c236
commit
d8f7ca3e6e
@ -164,6 +164,7 @@ main(int argc, char **argv)
|
||||
{
|
||||
int ncid;
|
||||
int mode[NUM_UDFS] = {NC_UDF0, NC_UDF1};
|
||||
NC_Dispatch *disp_in;
|
||||
int i;
|
||||
|
||||
/* Create an empty file to play with. */
|
||||
@ -175,6 +176,9 @@ main(int argc, char **argv)
|
||||
{
|
||||
/* Add our user defined format. */
|
||||
if (nc_def_user_format(mode[i], &tst_dispatcher, NULL)) ERR;
|
||||
|
||||
/* Check that our user-defined format has been added. */
|
||||
if (nc_inq_user_format(mode[i], &disp_in, NULL)) ERR;
|
||||
|
||||
/* Open file with our defined functions. */
|
||||
if (nc_open(FILE_NAME, mode[i], &ncid)) ERR;
|
||||
|
Loading…
Reference in New Issue
Block a user