aboutsummaryrefslogtreecommitdiff
path: root/opts.h
blob: 86e2f2493bdd8af7c86003380e1458de72ae99ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
    Mount option parsing
    Copyright (C) 2004  Miklos Szeredi <miklos@szeredi.hu>

    This program can be distributed under the terms of the GNU GPL.
    See the file COPYING.
*/

struct opt {
    const char *optname;
    int present;
    char *value;
};

void process_options(int *argcp, char *argv[], struct opt opts[], 
                     int case_sensitive);

int opt_get_unsigned(const struct opt *o, unsigned *valp);