diff options
author | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-06-21 19:41:37 +0000 |
---|---|---|
committer | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-06-21 19:41:37 +0000 |
commit | 5f0f7d3428d4c8cc51fef8fcb4e7bf0ac616dab2 (patch) | |
tree | 3cdbaddffecc92649215fdc71a43b4e8e86b7ea3 /sed.c | |
parent | ce5c25da381038fa6d2640a2f4aa77771ca2ee43 (diff) | |
download | busybox-w32-5f0f7d3428d4c8cc51fef8fcb4e7bf0ac616dab2.tar.gz busybox-w32-5f0f7d3428d4c8cc51fef8fcb4e7bf0ac616dab2.tar.bz2 busybox-w32-5f0f7d3428d4c8cc51fef8fcb4e7bf0ac616dab2.zip |
Rewrote mkdir (and touched lots of things in the process).
git-svn-id: svn://busybox.net/trunk/busybox@2873 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'sed.c')
-rw-r--r-- | sed.c | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -195,15 +195,6 @@ static int get_address(struct sed_cmd *sed_cmd, const char *str, int *linenum, r | |||
195 | return idx; | 195 | return idx; |
196 | } | 196 | } |
197 | 197 | ||
198 | static char *strdup_substr(const char *str, int start, int end) | ||
199 | { | ||
200 | int size = end - start + 1; | ||
201 | char *newstr = xmalloc(size); | ||
202 | memcpy(newstr, str+start, size-1); | ||
203 | newstr[size-1] = '\0'; | ||
204 | return newstr; | ||
205 | } | ||
206 | |||
207 | static int parse_subst_cmd(struct sed_cmd *sed_cmd, const char *substr) | 198 | static int parse_subst_cmd(struct sed_cmd *sed_cmd, const char *substr) |
208 | { | 199 | { |
209 | int oldidx, cflags = REG_NEWLINE; | 200 | int oldidx, cflags = REG_NEWLINE; |