From fe2b816447c8d7941f87be1f8701afa1871858f3 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Thu, 17 Mar 2022 19:37:12 +0100 Subject: [PATCH] Add more example in C11 for showing more possibility --- example/ex-multi02.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/example/ex-multi02.c b/example/ex-multi02.c index b949f0ad..3dea0805 100644 --- a/example/ex-multi02.c +++ b/example/ex-multi02.c @@ -68,6 +68,10 @@ int main(void) } } } +#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L + // Print all the array in one step. Need to be done in C11 only + M_PRINT("The array is equal to ", (array, my_array_t), "\n"); +#endif } /* All variables are automatically cleared beyond this point */ }