NCoT @james is posting a blog series on how to set up a retro MS-DOS C development environment with DJGPP and RHIDE, and use it to write programs:
https://ncot.uk/nostalgic-dos-development-setting-up-the-machine/
https://ncot.uk/nostalgic-dos-development-part-2-writing-our-first-programs/