darknet  v3
Functions
option_list.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "option_list.h"
#include "utils.h"
Include dependency graph for option_list.c:

Go to the source code of this file.

Functions

listread_data_cfg (char *filename)
 
metadata get_metadata (char *file)
 
int read_option (char *s, list *options)
 
void option_insert (list *l, char *key, char *val)
 
void option_unused (list *l)
 
char * option_find (list *l, char *key)
 
char * option_find_str (list *l, char *key, char *def)
 
int option_find_int (list *l, char *key, int def)
 
int option_find_int_quiet (list *l, char *key, int def)
 
float option_find_float_quiet (list *l, char *key, float def)
 
float option_find_float (list *l, char *key, float def)
 

Function Documentation

◆ get_metadata()

metadata get_metadata ( char *  file)

Definition at line 35 of file option_list.c.

◆ option_find()

char* option_find ( list l,
char *  key 
)

Definition at line 91 of file option_list.c.

◆ option_find_float()

float option_find_float ( list l,
char *  key,
float  def 
)

Definition at line 134 of file option_list.c.

◆ option_find_float_quiet()

float option_find_float_quiet ( list l,
char *  key,
float  def 
)

Definition at line 127 of file option_list.c.

◆ option_find_int()

int option_find_int ( list l,
char *  key,
int  def 
)

Definition at line 112 of file option_list.c.

◆ option_find_int_quiet()

int option_find_int_quiet ( list l,
char *  key,
int  def 
)

Definition at line 120 of file option_list.c.

◆ option_find_str()

char* option_find_str ( list l,
char *  key,
char *  def 
)

Definition at line 104 of file option_list.c.

◆ option_insert()

void option_insert ( list l,
char *  key,
char *  val 
)

Definition at line 70 of file option_list.c.

◆ option_unused()

void option_unused ( list l)

Definition at line 79 of file option_list.c.

◆ read_data_cfg()

list* read_data_cfg ( char *  filename)

Definition at line 7 of file option_list.c.

◆ read_option()

int read_option ( char *  s,
list options 
)

Definition at line 52 of file option_list.c.