|
|
|
|
|
by bryanallen22
5571 days ago
|
|
If someone has enough SO reputation (I don't), you might mention on pmg's post that casting malloc is a good idea, even though it's not necessary in C. Otherwise, should your code ever move to a C++ environment it'll be an error -- not even a warning. |
|
If you want to use C code from a C++ program, you MUST compile it with a C compiler and link it in.