https://github.com/srilakshmikanthanp/libio
Beginners Friendly Input/Output Library For C, Python Like Syntax!
https://github.com/srilakshmikanthanp/libio
beginners-friendly c input-output library
Last synced: 2 months ago
JSON representation
Beginners Friendly Input/Output Library For C, Python Like Syntax!
- Host: GitHub
- URL: https://github.com/srilakshmikanthanp/libio
- Owner: srilakshmikanthanp
- License: mit
- Created: 2021-05-23T11:14:34.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-08T09:41:52.000Z (over 2 years ago)
- Last Synced: 2025-02-03T02:31:07.509Z (4 months ago)
- Topics: beginners-friendly, c, input-output, library
- Language: C
- Homepage: https://srilakshmikanthanp.github.io/libio/
- Size: 230 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
libio
Easy Input Output Library For C
Explore the docs »
Report Bug
·
Request Feature
Table of Contents
## About The Project
This is an easy input output library for c especially for begineers. This Library works on top of stdio.h but uses a input function that returns string that allocated on heap but it tracks of that with help of linked list that will be deallocated or freed after main. print function takes variable arg of char* you can convert build in types to string easily with str that uses _Generic to operate on various types.
## Warning ⚠️
I made this library for fun and for begineers _NOT FOR PRODUCTION_ because this library use much space on heap that going to relesed only afer main
## Getting Started
To get a local copy up and running follow these simple steps.
~~~shell
git clone https://github.com/srilakshmikanthanp/libio/
~~~### Installation
This is Header only library so just download [libio.h](src/srilakshmikanthanp/libio.h).
## Usage
Usage is very easy, a sample whould be,
~~~c
#include "libio.h"int main()
{
int a = input(int, "Enter a : ");
int b = input(int, "Enter a : ");print("Sum = ", str(a+b));
return 0;
}
~~~## Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.
1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request## License
Distributed under the MIT License. See `LICENSE` for more information.
## Contact
Project Link: [https://github.com/srilakshmikanthanp/libio](https://github.com/srilakshmikanthanp/libio)