view lib/argmatch.h @ 1192:fcb9d43860d6

(make_path): Try to change ownership only if we've just created the directory. Fix latent bug (s/&&/||/ in two places -- also, note that it could not be exercised via install or mkdir) whereby chown would not be invoked when only one of owner/group is not -1.
author Jim Meyering <jim@meyering.net>
date Fri, 02 Jan 1998 23:15:39 +0000
parents 3f93a48c055d
children 3f067a341196
line wrap: on
line source

/* argmatch.h -- declarations for matching arguments against option lists */

#if defined __STDC__ || __GNUC__
# define __ARGMATCH_P(args) args
#else
# define __ARGMATCH_P(args) ()
#endif

int argmatch __ARGMATCH_P ((const char *, const char * const *));
void invalid_arg __ARGMATCH_P ((const char *, const char *, int));

extern char *program_name;