Add Westermo chomp() function, slightly improved from Finit original.

Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Tobias Waldekranz authored and Joachim Nilsson committed 2015-06-17 22:07:10 +02:00
1 parent 745256909e
commit 121e8ee888
4 files changed
+68 -11

No files matched your search

+2
View File
@@ -33,6 +33,8 @@
#include <sys/param.h> /* MAX(), isset(), setbit(), TRUE, FALSE, et consortes. :-) */
#include <unistd.h>
char *chomp (char *str);
int fexist (char *file);
int fisdir (char *file);
mode_t fmode (char *file);