C′ (C Prime) is a library for the C programming language that includes standard library headers, macros, and functions to provide a more modern and user-friendly experience for C programmers. It includes high-level (C++-like) features:
- Exception/signal handling, try-catch-finally blocks
- Function overloading (using macros)
- Boolean, string, and auto types
- Simplified input functions (with prompts)
- String functions (substring, index, toupper/tolower, etc.)
- Foreach, fori, and arrlen macros
- File Reader and File Writer classes
- Etc.
This header file is intended to be a drop-in replacement for much of the C standard library and is designed to be used alongside the standard C library headers.
To import, simply #include "cprime.h"
as desired. For usage examples, see test.c.
Bugs are tracked using the GitHub Issue Tracker.
Please use the issue tracker for the following purposes:
- To raise a bug request; include specific details and label it appropriately.
- To suggest any improvements in existing features.
- To suggest new features, structures, or applications.
The code is licensed under the MIT License.