1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #ifndef _GETOPT_H__
- #define _GETOPT_H__
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include <zephyr.h>
- struct getopt_state {
- int opterr;
- int optind;
- int optopt;
- int optreset;
- char *optarg;
- char *place;
- };
- void getopt_init(struct getopt_state *state);
- int getopt(struct getopt_state *const state, int nargc,
- char *const nargv[], const char *ostr);
- #ifdef __cplusplus
- }
- #endif
- #endif
|