mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
20 lines
418 B
C
20 lines
418 B
C
#ifndef OPTION_LIST_H
|
|
#define OPTION_LIST_H
|
|
#include "list.h"
|
|
|
|
typedef struct{
|
|
char *key;
|
|
char *val;
|
|
int used;
|
|
} kvp;
|
|
|
|
|
|
int read_option(char *s, list *options);
|
|
void option_insert(list *l, char *key, char *val);
|
|
char *option_find(list *l, char *key);
|
|
float option_find_float(list *l, char *key, float def);
|
|
float option_find_float_quiet(list *l, char *key, float def);
|
|
void option_unused(list *l);
|
|
|
|
#endif
|