Upload files to "/"
This commit is contained in:
31
README.md
31
README.md
@@ -2,21 +2,46 @@
|
|||||||
|
|
||||||
this lib is an attempt to make some better functions without the use of glibC
|
this lib is an attempt to make some better functions without the use of glibC
|
||||||
|
|
||||||
# WARNING
|
# OS support
|
||||||
to my knowledge this only works on linux thanks to some systemcalls
|
x64 Linux
|
||||||
|
x64 freebsd(not tested yet)
|
||||||
|
|
||||||
## features
|
## features
|
||||||
|
|
||||||
- print: just prints text to console
|
- print: just prints text to console
|
||||||
- ColorPrint: changes the foreground color of text to an ANSI color
|
- ColorPrint: changes the foreground color of text to an ANSI color
|
||||||
- BackgroundPrint: changs the background 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
|
## how to build
|
||||||
|
|
||||||
to build all thats needed is the gcc compiler and a version of linux
|
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
|
### commands
|
||||||
|
these first command are the same for both versions
|
||||||
- git clone https://git.wulliestudio.com/wullie/libstdwullie
|
- git clone https://git.wulliestudio.com/wullie/libstdwullie
|
||||||
- cd libstdwullie
|
- cd libstdwullie
|
||||||
|
|
||||||
|
#### executable
|
||||||
|
- gcc -I ./include src/*.c -nostdlib -fno-stack-protector -o stdwullie
|
||||||
|
- ./stdwullie
|
||||||
|
|
||||||
|
#### sharedlib
|
||||||
- make clean
|
- make clean
|
||||||
|
|
||||||
|
## license
|
||||||
|
this sofware is licensed under wrathmark license see licence 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
|
||||||
|
|||||||
27
WrathMarkLicense.txt
Normal file
27
WrathMarkLicense.txt
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
Copyright (C) [DATE], [AUTHOR], [SITE]
|
||||||
|
|
||||||
|
This license grants the right to copy modify and distribute the source at will under the following conditions:
|
||||||
|
|
||||||
|
|
||||||
|
I) The source must not be used to train AI(Artificial Intelligence)
|
||||||
|
|
||||||
|
II) If this license is packaged with a compiled binary a copy of source code must be provided along side said binary
|
||||||
|
|
||||||
|
III) In the case of selling original source by the copyright holder the holder does not have to immediately post the source how ever the source must be published with in 3 months
|
||||||
|
|
||||||
|
IV) For digital media e.g. Digital art and video no raw export(source) needs to be provided.
|
||||||
|
|
||||||
|
Dual or multi license:
|
||||||
|
|
||||||
|
In the case of multiple licenses this license will only apply to work made by the holder in separate projects that include other licensed content
|
||||||
|
|
||||||
|
|
||||||
|
Warranty for software:
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
Warranty for digital media:
|
||||||
|
|
||||||
|
THE MEDIA IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MEDIA OR THE USE OR OTHER DEALINGS IN THE MEDIA
|
||||||
|
|
||||||
Reference in New Issue
Block a user