I am currently having somewhat of a brain stump here. I am programming in a larger project and well, it's on the move to c++. the source code is all c we compile by using a makefile.
There is a file with several functions we are taking one removing everything in that function except the function name(since it's being used already) and calling that function from the cpp folder/file? I am not very experienced in this conversion type. In the cpp folder there would be another file with that function in c++ using some c functions in it and would compile with one makefile.
How would I go about doing this? by creating a header file for each file .cpp file? I am discovering that there has to be a way to incorporate or do it this way.
some instruction in the right direction would be nice. If you still do not understand it. Let me explain another way? Lets say you have a function you want to convert it to c++, but cannot due to it being in hundreds of other places, so you have to do it bit by bit. how do you leave that function void fun in the c file and redirect it to another c++ file with a redesigned updated version of the same function??