Files
libstdwullie/README.md
T
2026-08-12 23:07:49 +00:00

49 lines
1.5 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.text: just prints text to console
- print.nl: does the same but adds a new line after the text
- print.colour: changes the foreground color of text to an ANSI color
- print.background: changs the background color of text to an ANSI color
- safeError: calls exit -1 and prints a brief description supports custom text or NULL
- 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
- convert.toInt: 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