From fa85ef07064787aac89b69fdc206fdd534d9281c Mon Sep 17 00:00:00 2001 From: Sven Robertz <sven@cs.lth.se> Date: Fri, 17 May 2013 09:51:32 +0200 Subject: [PATCH] added actual values to TwoFixedArrays --- examples/simple/example_encoder.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/examples/simple/example_encoder.c b/examples/simple/example_encoder.c index afb0cc2..5270c2b 100644 --- a/examples/simple/example_encoder.c +++ b/examples/simple/example_encoder.c @@ -60,6 +60,16 @@ int main(int argc, char *argv[]) { simple_TwoFixedArrays tfa; + tfa.a.a[0] = 41; + tfa.a.a[1] = 42; + + tfa.b.a[0][0] = 51; + tfa.b.a[0][1] = 52; + tfa.b.a[0][2] = 53; + tfa.b.a[1][0] = 61; + tfa.b.a[1][1] = 62; + tfa.b.a[1][2] = 63; + printf("Encoding TwoFixedArrays...\n"); labcomm_encoder_register_simple_TwoFixedArrays(encoder); labcomm_encode_simple_TwoFixedArrays(encoder, &tfa); -- GitLab