diff options
author | Norbert Preining <norbert@preining.info> | 2020-09-20 03:03:26 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-09-20 03:03:26 +0000 |
commit | 1f457376b478257b88d4a857f5ec1b6155442dd7 (patch) | |
tree | 2a06a60551dea362cf8cb0cb0ba66c78608717c4 /support/dktools/test-strms.ctr | |
parent | ac690ca29ad5bf8a5203a65fd6252f7b564f4727 (diff) |
CTAN sync 202009200303
Diffstat (limited to 'support/dktools/test-strms.ctr')
-rw-r--r-- | support/dktools/test-strms.ctr | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/support/dktools/test-strms.ctr b/support/dktools/test-strms.ctr deleted file mode 100644 index dd4910804c..0000000000 --- a/support/dktools/test-strms.ctr +++ /dev/null @@ -1,36 +0,0 @@ - -#include "dk4conf.h" - -#include <math.h> - -#include "dk4strm.h" -#include "dk4strmw.h" -#include "dk4strms.h" - -static const char t1[] = { "Dies ist ein Test-String." }; - -int main(void) -{ - dk4_stream_t *wrstr; - - wrstr = dk4stream_open_file_writer("/tmp/test.dat.gz", NULL); - if (NULL != wrstr) { - dk4stream_serialize_u32(wrstr, 25UL, NULL); - dk4stream_serialize_i32(wrstr, -16L, NULL); - dk4stream_serialize_string(wrstr, t1, NULL); - dk4stream_serialize_u16(wrstr, 50U, NULL); - dk4stream_serialize_double(wrstr, M_PI, 1.0e-6, NULL); - dk4stream_serialize_i16(wrstr, -32, NULL); - dk4stream_serialize_double_0(wrstr, NULL); - dk4stream_serialize_u8(wrstr, 100, NULL); - dk4stream_serialize_i8(wrstr, -64, NULL); - dk4stream_close(wrstr, NULL); - } - else { - } - return 0; -} - - -/* vim: set ai sw=4 ts=4 : */ - |