summaryrefslogtreecommitdiffhomepage
path: root/include/libbb.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 102596c1f..3b0ced7d1 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -243,7 +243,11 @@ extern FILE *gz_open(FILE *compressed_file, int *pid);
extern struct hostent *xgethostbyname(const char *name);
char *dirname (const char *path);
-char *strdup_substr (const char *s, int start, int end);
+
+static inline char *strdup_substr (const char *s, int start, int end)
+{
+ return xstrndup (s+start, end-start);
+}
int make_directory (char *path, mode_t mode, int flags);
#define CT_AUTO 0