Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
void func(size_t s) {
   vla[s];
   ...
}
...
func(size);
...

...

Code Block
#define MAX_ARRAY 1024

void func(size_t s) {
   vla[s];
   ...
}
...
if (size < MAX_ARRAY && size != 0) {
   func(size);
} else {
   /* Handle Error */
}
...

...