Skip to content

Converts text to C code snippets for strings with printf fgets with removal of new line character. Completes if and else if statements for strings in C.

License

Notifications You must be signed in to change notification settings

mwiseca/C-strings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

658 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C-strings

Use this to make simple programs in C.
The program converts plain text into C code snippets and comments out almost anything that isn't valid C code.
This is for learning and checking syntax, not enhancing productivity.

To Use

To use the Python file, Python must be installed. The C file must be compiled before use. To use select an option from choices. If b is selected and Hello world. is typed, printf("Hello world.\n"); will be displayed on the screen. The result can be used to check syntax or pasted into a program. To use fgets and if, else if statements #include <string.h> must be used. To use __fpurge(stdin); to flush input buffer #include <stdio_ext.h> must be used. Select m to go to main and select another choice or exit.
I am not accepting pull requests on this project.

Example

Below is a example of how it works. Click on the image to enlarge.

image

About

Converts text to C code snippets for strings with printf fgets with removal of new line character. Completes if and else if statements for strings in C.

Resources

License

Stars

Watchers

Forks

Packages

No packages published