zmrMiniCRT is a minimalistic C runtime library designed for educational purposes. It provides a basic implementation of essential C standard library functions.
- Basic memory management (malloc, free)
- Simple I/O functions (printf, scanf)
- String manipulation functions (strlen, strcpy, strcmp)
- Minimal startup code
To build and use zmrMiniCRT, follow these steps:
-
Build the library:
cmake . make -
Run project:
./test
Here is a simple example of using zmrMiniCRT:
#include "minicrt.h"
void fun() {
printf("After main\n");
}
int main(int argc, char* argv[]) {
atexit(fun);
printf("Main\n");
return 0;
}This project is licensed under the MIT License.
Contributions are welcome! Please submit pull requests or open issues to help improve the project.
Special thanks to all the contributors and the open-source community for their support.