mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
10b0ac536f
Add support for embedded NUL characters in character arrays and added some test cases. Note that embedded NULs in netcdf-4 string constants are still illegal. This is because strings are not counted in the netcdf API, so they are implicitly NUL terminated.
10 lines
103 B
Plaintext
10 lines
103 B
Plaintext
netcdf ref_tst_nul4 {
|
|
dimensions:
|
|
n = 8 ;
|
|
variables:
|
|
char cdata(n) ;
|
|
data:
|
|
|
|
cdata = "abc\000def" ;
|
|
}
|