@openroomxyz I’m not sure I understand your question?
You can write a C program for DOS, yes.
If you want that C program to run in a browser you need an emulator like JS-dos.
But that has nothing to do with how DOjS or DOStodon work…