diff options
author | Glenn L McGrath | 2001-06-26 02:06:08 +0000 |
---|---|---|
committer | Glenn L McGrath | 2001-06-26 02:06:08 +0000 |
commit | 78b0e379d7c2db84eec34ccd89cf9afb67b94901 (patch) | |
tree | ae5bb34caa3b88968102e93193a01e4d90109b92 /include | |
parent | addabd6f16aece578d94d810d3a9e9dc88f2cdb7 (diff) | |
download | busybox-78b0e379d7c2db84eec34ccd89cf9afb67b94901.zip busybox-78b0e379d7c2db84eec34ccd89cf9afb67b94901.tar.gz |
Vladimir's last_patch_15
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index 102596c..3b0ced7 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 |