BSB Developer Docs
Loading...
Searching...
No Matches
argparse.h
Go to the documentation of this file.
1
14#pragma once
15
16#include <core/string.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
33typedef void (*OptionCallback)(char opt, const char* optarg, void* context);
34
62bool parse_args(FuriString* args, const char* opts, OptionCallback callback, void* context);
63
64#ifdef __cplusplus
65}
66#endif
void(* OptionCallback)(char opt, const char *optarg, void *context)
Option callback function type.
Definition argparse.h:33
bool parse_args(FuriString *args, const char *opts, OptionCallback callback, void *context)
Parse command options from an argument string.
Definition argparse.c:110