Mercurial > hg > xemacs-beta
comparison nt/minitar.c @ 398:74fd4e045ea6 r21-2-29
Import from CVS: tag r21-2-29
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:13:30 +0200 |
parents | 03446687b7cc |
children | 697ef44129c6 |
comparison
equal
deleted
inserted
replaced
397:f4aeb21a5bad | 398:74fd4e045ea6 |
---|---|
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; | |
47 | 46 |
48 for (cp=path; cp; cp = (char*)strchr(cp+1,'/')){ | 47 for (cp=path; cp; cp = (char*)strchr(cp+1,'/')){ |
49 if (!*cp) | 48 if (!*cp) |
50 break; | 49 break; |
51 if (*cp != '/') | 50 if (*cp != '/') |
202 size -= nbytes; | 201 size -= nbytes; |
203 if (size==0) | 202 if (size==0) |
204 in_block = 0; | 203 in_block = 0; |
205 } | 204 } |
206 } | 205 } |
206 exit (0); | |
207 } | 207 } |
208 | 208 |
209 | 209 |
210 | 210 |
211 | 211 |