2015-06-17 21:56:03 +02:00
2015-06-17 21:13:02 +02:00
2015-06-17 21:13:02 +02:00
2015-06-17 21:26:58 +02:00
2015-06-17 21:56:03 +02:00
2015-06-17 20:57:05 +02:00
2015-06-17 21:13:02 +02:00
2013-01-29 13:29:45 +01:00
2013-01-29 13:29:45 +01:00
2013-05-21 19:55:41 +02:00

-lite: A compilation of missing C-lib functions

Libite, or -lite, is a light-weight library of utility functions and missing C library functions.

Generic Functions

  • 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()

TODO

  • Improve documentation, possibly use kdoc or gdoc2 to generate docs from API.
  • Add chomp() from Finit
S
Description
That missing frog DNA you've been looking for
Readme MIT
964 KiB
Languages
C 88.4%
M4 9.6%
Makefile 2%