Mercurial > hg > xemacs-beta
comparison nt/minitar.c @ 438:84b14dcb0985 r21-2-27
Import from CVS: tag r21-2-27
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:32:25 +0200 |
parents | 9d177e8d4150 |
children | 5aa1854ad537 |
comparison
equal
deleted
inserted
replaced
437:e2a4e8b94b82 | 438:84b14dcb0985 |
---|---|
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 != '/') |