Skip to content

srilakshmikanthanp/libio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


libio

Easy Input Output Library For C
Explore the docs »
Report Bug · Request Feature

Table of Contents

  1. About The Project
  2. Getting Started
  3. Usage
  4. Contributing
  5. License
  6. Contact

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.

git clone https://github.com/srilakshmikanthanp/libio/

Installation

This is Header only library so just download libio.h.

Usage

Usage is very easy, a sample whould be,

#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