Mercurial > hg > xemacs-beta
comparison nt/minitar.c @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | 74fd4e045ea6 |
children |
comparison
equal
deleted
inserted
replaced
411:12e008d41344 | 412:697ef44129c6 |
---|---|
11 do whatever you like with it. There is NO WARRANTY. | 11 do whatever you like with it. There is NO WARRANTY. |
12 If it breaks, you get to keep both pieces */ | 12 If it breaks, you get to keep both pieces */ |
13 | 13 |
14 | 14 |
15 #include <stdio.h> | 15 #include <stdio.h> |
16 #include <errno.h> | 16 #include <Errno.h> |
17 | 17 |
18 #include <zlib.h> | 18 #include <zlib.h> |
19 | 19 |
20 Usage(char *name) | 20 Usage(char *name) |
21 { | 21 { |
41 | 41 |
42 int makepath(char *path) | 42 int makepath(char *path) |
43 { | 43 { |
44 char tmp[MAXNAMELEN]; | 44 char tmp[MAXNAMELEN]; |
45 char *cp; | 45 char *cp; |
46 extern int errno; | |
46 | 47 |
47 for (cp=path; cp; cp = (char*)strchr(cp+1,'/')){ | 48 for (cp=path; cp; cp = (char*)strchr(cp+1,'/')){ |
48 if (!*cp) | 49 if (!*cp) |
49 break; | 50 break; |
50 if (*cp != '/') | 51 if (*cp != '/') |
201 size -= nbytes; | 202 size -= nbytes; |
202 if (size==0) | 203 if (size==0) |
203 in_block = 0; | 204 in_block = 0; |
204 } | 205 } |
205 } | 206 } |
206 exit (0); | |
207 } | 207 } |
208 | 208 |
209 | 209 |
210 | 210 |
211 | 211 |