void * array_dup (a, number, size) const void * a; size_t number; size_t size; { void * clone; size_t bytes; assert(a != NULL); bytes = number * size; clone = alloca(bytes); if (!clone) return clone; memcpy(clone, a, bytes); return clone; }
The function array_dup(), defined above, contains an error. Which of the following options correctly analyses it?
Reveal answer
Fill a bubble to check yourself