Skip to content

uoctamika/libstdoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

libstdoc

(lib)stdoc is a general-purpose utility library for the C programming language. It is designed to provide safer, more consistent, and more ergonomic alternatives to common patterns in standard C, while preserving performance and low-level control.

(lib)stdoc aims to address these problems by offering a carefully designed set of utilities that improve safety and developer experience without hiding the nature of C.

Installation

You need several Tools for compiling this project:

  • GCC / Clang latest version
  • Make latest version

Clone the repository:

git clone https://github.com/uoctamika/stdoc.git

Then build this project:

$ cd stdoc
$ make BUILD=release
# make install

(NOTE:default installation path at /usr/local/ for Linux) (NOTE:# mean sudo privilege)

Then you can compile your own projects with stdoc:

gcc main.c -lstdoc -o app

Available Build Mode

release - recommended option for development a software with O2

debug - for semi-low debugging this lib, catching warnings without zero O2

strict - warnings can be errors, mostly for lib maintainer

Custom Configurations

if you want configuration you own installation, we allow you to modify top section before BUILD ?= of GNU make in root

Example

#include <stdoc.h>

int main(void) {
    stdoc_version(); // check version

    stdoc_printf("Hello from stdoc!\n");

    return 0;
}

Naming Convention

All public APIs use the stdoc_ prefix to avoid conflicts. example:

stdoc_version(); stdoc_printf();

Contributing

Contributions are welcome for making this library better. You can request new features or give us ideas.

Sources

Wikipedia: https://en.wikipedia.org/wiki/C_(programming_language)
Documentation C: https://devdocs.io/c/
Documentation C Man Pages: man libc
Documentation C Man Pages Online: https://man7.org/linux/man-pages/index.html
ISO C Wiki: https://www.iso-9899.info/wiki/The_Standard
ISO C Books latest: https://www.iso.org/standard/82075.html

About

library for The C Programing Language

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

Contributors