Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__TOS_WIN__) || defined(__WINDOWS__)
- #define EDITOR "notepad"
- #else
- #define EDITOR "emacs"
- #endif
- int main() {
- printf( "Now I'm going to start your text editor!\n" );
- system( EDITOR );
- printf( "Good-bye!\n" );
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement