xref: /original-bsd/bin/cp/extern.h (revision e59fb703)
1 /*-
2  * Copyright (c) 1991 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)extern.h	5.3 (Berkeley) 10/27/91
8  */
9 
10 typedef struct {
11 	char *p_end;			/* pointer to NULL at end of path */
12 	char p_path[MAXPATHLEN + 1];	/* pointer to the start of a path */
13 } PATH_T;
14 
15 extern char *progname;			/* program name */
16 
17 #include <sys/cdefs.h>
18 
19 __BEGIN_DECLS
20 void	 err __P((const char *fmt, ...));
21 int	 path_set __P((PATH_T *, char *));
22 char	*path_append __P((PATH_T *, char *, int));
23 char	*path_basename __P((PATH_T *));
24 void	 path_restore __P((PATH_T *, char *));
25 __END_DECLS
26