Defines | Functions
options_interface.c File Reference
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "options.h"
Include dependency graph for options_interface.c:

Go to the source code of this file.

Defines

#define _GNU_SOURCE

Functions

struct optionoptions_allocate (int n)
void options_alternative (struct option *ops, const char *name, struct option_alternative *alt, int *value, const char *desc)
void options_double (struct option *ops, const char *name, double *p, double def_value, const char *desc)
void options_int (struct option *ops, const char *name, int *p, int def_value, const char *desc)
struct optionoptions_next_empty (struct option *ops)
void options_string (struct option *ops, const char *name, const char **p, const char *def_value, const char *desc)
char * strdup_ (const char *s)

Define Documentation

#define _GNU_SOURCE

Definition at line 7 of file options_interface.c.


Function Documentation

struct option* options_allocate ( int  n) [read]

User-friendly interface

Definition at line 16 of file options_interface.c.

void options_alternative ( struct option ops,
const char *  name,
struct option_alternative alt,
int *  value,
const char *  desc 
)

Definition at line 49 of file options_interface.c.

void options_double ( struct option ops,
const char *  name,
double *  p,
double  def_value,
const char *  desc 
)

Definition at line 62 of file options_interface.c.

void options_int ( struct option ops,
const char *  name,
int *  p,
int  def_value,
const char *  desc 
)

Definition at line 39 of file options_interface.c.

struct option* options_next_empty ( struct option ops) [read]

Definition at line 30 of file options_interface.c.

void options_string ( struct option ops,
const char *  name,
const char **  p,
const char *  def_value,
const char *  desc 
)

Definition at line 72 of file options_interface.c.

char* strdup_ ( const char *  s)

Our version of strdup.

Definition at line 38 of file options.c.



csm_ros
Author(s): Gaƫl Ecorchard , Ivan Dryanovski, William Morris, Andrea Censi
autogenerated on Sat Jun 8 2019 19:52:42