-
Notifications
You must be signed in to change notification settings - Fork 0
A C program (in C89 dialect) that reads standard input and prints the reverse to standard output (Version 1.3 released 30 May 2025)
License
richardcavell/reverse-c
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
reverse-c A program by Richard Cavell https://github.com/richardcavell/reverse-c (c) 2017-2025 Version 1.3 (29 May 2025) This is a simple program written in standard C, dialect C89. It reads in the standard input, and prints the byte-for-byte reverse of it on the standard output. It can be used on any type of data. It is good for reversing text input, as long as you are not using "wide characters". The program should compile on any operating system or type of machine. It relies only on the standard library. You can use GNU make to compile simply by typing "make". This program exists to demonstrate the algorithms used. You are welcome to study the source code and the algorithms. There is an alternative version of this program that uses getchar() and putchar(). There is also a C++ version of this program. My thanks to the wizards on the [c-prog] mailing list on Yahoo! Groups, and kate from IRC, for their feedback. This project is complete. It is actively maintained by me. The last review occurred in May 2025. Richard Cavell
About
A C program (in C89 dialect) that reads standard input and prints the reverse to standard output (Version 1.3 released 30 May 2025)
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published