etar125/e1l
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
etar125's lib
=============
e1l -- just my library with functions,
that i need.
Functions:
- str:
- readstr - basic read from stdin, waits for \n
- reverse - reverse string (doesn't support UTF-8)
- join - joins 2nd string to 1st
- insert - inserts 2nd string in 1st
- dstr:
- d_append - adds string to "dynamic" string
- d_shrink - ..., just does strdup
- sarr (functions have prefix sarr_):
- struct "sarr"
- empty - creates empty array
- init - creates array from string
- update - updates offsets
- add - adds strings
- remove - removes string
- insert - inserts string
- getstr - return pointer to string (not duplicate!)
sarr is string where elements are split with \0.
When I was writing this README, I thought, what the actual
purpose of d_shrink. Will remove it probably.
git clone https://github.com/etar125/e1l.git
cd e1l
make
sudo make install