summaryrefslogtreecommitdiffstats
path: root/src/parse.h
blob: 6895c9f6e9f5bc76014e154d19c9eb4a56e9cdee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright © Tavian Barnes <tavianator@tavianator.com>
// SPDX-License-Identifier: 0BSD

/**
 * bfs command line parsing.
 */

#ifndef BFS_PARSE_H
#define BFS_PARSE_H

/**
 * Parse the command line.
 *
 * @param argc
 *         The number of arguments.
 * @param argv
 *         The arguments to parse.
 * @return
 *         A new bfs context, or NULL on failure.
 */
struct bfs_ctx *bfs_parse_cmdline(int argc, char *argv[]);

#endif // BFS_PARSE_H