Flexible arrays - v confused

D

Dave Thompson

Richard Bos wrote: (casting return of malloc)
C++ compilers also enforce prototype predeclarations (so would C99
compilers if they existed). So exactly which dangerous mistake do you
think I am going to miss?

C++ does require prototypes (though not using that term).

C99 requires _declarations_ but not necessarily prototypes. That is
enough for the return type, as here, but not arguments.

- David.Thompson1 at worldnet.att.net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,534
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top