Files
libstdwullie/README.md
2026-02-27 13:18:49 +00:00

48 lines
1.4 KiB
Markdown

# StdWullie
this lib is an attempt to make some better functions without the use of glibC
# OS support
x64 Linux
x64 freebsd(not tested yet)
## features
- print: just prints text to console
- ColorPrint: changes the foreground color of text to an ANSI color
- BackgroundPrint: changs the background color of text to an ANSI color
- safeError: calls exit -1 and prints a brief description
- riskyError: prints error but continues
- Wopen: opens a file
- closeFile: closes an open file
- mkdir: does what it says on the tin
- sleeper: forces a system interupt for X number of seconds
- lengthStr: gets the length of a string
- parseInt: takes the ascii numbers and converst them into an int e.g '1' into 1
- invSqrt: fast inverse square root
## how to build
to build all thats needed is the gcc compiler and a version of linux
there is 2 version that can be built a shared lib and an executable, the latter is for testing the functions
### commands
these first command are the same for both versions
- git clone https://git.wulliestudio.com/wullie/libstdwullie
- cd libstdwullie
#### executable
- gcc -I ./include src/*.c -nostdlib -fno-stack-protector -o stdwullie
- ./stdwullie
#### sharedlib
- make clean
## license
this sofware is licensed under wrathmark license see [licence](license/) folder for more info
## words of wisdom
do not stare at the abyss for to long for not only does it stare back it screams