mirror of
https://github.com/troglobit/libite.git
synced 2026-10-28 12:20:45 +00:00
Add support for truncatef(), formatted truncate() replacement
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
7396dd83c7
commit
044c2621ac
4 files changed
+74
-1
No files matched your search
@@ -335,6 +335,13 @@ Generic Functions
|
||||
**Note:** Requires Linux v3.11, or later, will fall back to the old
|
||||
and unsafe `tmpfile()` on older systems.
|
||||
|
||||
- `truncatef(length, fmt, ...)`
|
||||
|
||||
Like `truncate()`, but takes a formatted string as argument. This
|
||||
simplifies some operations when the filename otherwise have to be
|
||||
composed from parts into a separate array before calling the real
|
||||
function.
|
||||
|
||||
- `which(cmd)`, `whichp(cmd)`
|
||||
|
||||
C implementation of UNIX which(1). Returns a malloc'ed string with the
|
||||
|
||||
Reference in new issue
Block a user