#Rewriting code from Turbo C

3 messages · Page 1 of 1 (latest)

golden needle
#

Greetings folks!
I have been doing some guided project based learning to extend my C knowledge
So basically there is a program that is written in Turbo C. I am now trying to write it in Modern C (using VS code as IDE).
(The code is at least 500+ lines long so unable to post it.)

So, anything I should look out for?

Also, there was some code consisting of far pointers that were being used to access VDU and put messages in it. I searched in Google and it set that it's no longer possible to do so. Thus I just replaced it with normal pointers. Is it alright?

novel jackalBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For more information use !howto ask.

rigid pasture
#

Well, you have to compile your code to actually know what the will compiler tells you, right?
By the way, you may want to rewrite/remove functions from Turbo C-specific headers like graphics.h and conio.h. No more PASCAL far pointers or 16-bit x86 assembly of course.