/unixlib

UNIX C standard library replacement created for Hacktoberfest

Primary LanguageCGNU General Public License v3.0GPL-3.0

unixlib

Branch master

Build Status

License

C standard library replacement for UNIX systems created for Hacktoberfest 2016.

This library consists of replacements for simple C standard functions, important data structures, and everyday algorithms. It mainly focuses on getting rid of the error-checking/cross platform features to reduce the functions to small pieces of understandable code which easily fit in one source file.

The mindset in this project is to get rid of abstraction, focusing on what something is intended to do. As such, any form of object-oriented programming is prohibited. Keep it simple.

For a complete and a detailed documentation, please refer to the wiki

Compilation

Compilation is achieved through the use of GNU Make. A makefile is provided in the root directory.

To compile the lib, input:

$ make

(Note: when compiling, a dynamic library with stripped out labels is produced. If you wish to keep the labels and add support for debugging meta information, please compile with make debug)

To remove the object files only:

$ make clean

To remove the object and lib files:

$ make fclean

To recompile everything:

$ make re

To install the library:

# make install

Documentation

To use the library, include <unixlib.h> in your file, and use the -lunixlib flag.

Every function, structure, or global variable from the library is defined in unixlib.h. Documentation regarding a specific feature can be found in the corresponding source file.