mirror of
https://github.com/troglobit/libite.git
synced 2026-10-24 11:44:37 +00:00
Update README slightly.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
08ce3d503e
commit
552f917b9b
1 file changed
+25
-3
@@ -1,5 +1,5 @@
|
||||
Light-weight library of missing C library functions
|
||||
===================================================
|
||||
`-lite`: A compilation of missing C-lib functions
|
||||
=================================================
|
||||
|
||||
Libite, or `-lite`, is a light-weight library of utility functions and
|
||||
missing C library functions.
|
||||
@@ -8,17 +8,39 @@ missing C library functions.
|
||||
Generic Functions
|
||||
-----------------
|
||||
|
||||
- `dir()`
|
||||
- `dir(dir, ext, filter, list, strip)`
|
||||
|
||||
Wrapper for `scandir()` with optional filter. Returns a list of
|
||||
names: files and directories that must be freed after use. See
|
||||
the unit test at the bottom for an example.
|
||||
|
||||
- `rsync(src, dst, delete, *filter())`
|
||||
|
||||
Very simple `rsync()` to copy files files and directories
|
||||
recursively.
|
||||
|
||||
- `copyfile(src, dst, len, symlink)`
|
||||
|
||||
Like the shell `cp(1)` and `dd(1),` can also create symlinks.
|
||||
|
||||
- `fexist(file)`
|
||||
|
||||
Check for the existance of a file, returns True(1) or False(0).
|
||||
|
||||
- `fisdir(path)`
|
||||
|
||||
Check for the existance of a directory, returns True(1) or False(0).
|
||||
|
||||
- `fmode(file)`
|
||||
|
||||
Returns the `mode_t` bits of a file or directory.
|
||||
|
||||
|
||||
OpenBSD Functions
|
||||
-----------------
|
||||
|
||||
The following are the popular OpenBSD string functions.
|
||||
|
||||
- `strlcpy(dst, src, len)`
|
||||
- `strlcat(dst, src, len)`
|
||||
- `strtonum()`
|
||||
|
||||
Reference in new issue
Block a user