A third possible solution might be to use static keyword memory; but, this only avoids malloc() because it still uses the memory heap on most implementations.

Tim S.