OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
strlist.c File Reference
#include "strlist.h"
Include dependency graph for strlist.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int newstringlist (char ***list, int *n, int size)
 
int clearstringlist (char **list, int n)
 
void getstringlist (char *optarg, char ***list, int *nitems)
 
void freestringlist (char ***list, int nitems)
 
void printstrlist (char **list, int n, FILE *f)
 
int instringlist (char **list, char *str, int nitems)
 
int addstringtolist (char **list, char *string, int nitems)
 
int appendstringtolist (char ***list, const char *string, int *nitems)
 
int strlistu (char **list1, char **list2, char **listunion, int n1, int n2, int nu)
 
int strlistsd (char **list1, char **list2, char **listdiff, int n1, int n2, int nsd)
 
int copystrlist (char **listsrc, char **listdst, int nsrc, int ndst)
 
int getnumstrlist (char **list, int nlist)
 

Function Documentation

◆ addstringtolist()

int addstringtolist ( char **  list,
char *  string,
int  nitems 
)

Definition at line 129 of file strlist.c.

◆ appendstringtolist()

int appendstringtolist ( char ***  list,
const char *  string,
int *  nitems 
)

Definition at line 152 of file strlist.c.

◆ clearstringlist()

int clearstringlist ( char **  list,
int  n 
)

Definition at line 36 of file strlist.c.

◆ copystrlist()

int copystrlist ( char **  listsrc,
char **  listdst,
int  nsrc,
int  ndst 
)

Definition at line 221 of file strlist.c.

◆ freestringlist()

void freestringlist ( char ***  list,
int  nitems 
)

Definition at line 88 of file strlist.c.

◆ getnumstrlist()

int getnumstrlist ( char **  list,
int  nlist 
)

Definition at line 242 of file strlist.c.

◆ getstringlist()

void getstringlist ( char *  optarg,
char ***  list,
int *  nitems 
)

Definition at line 53 of file strlist.c.

◆ instringlist()

int instringlist ( char **  list,
char *  str,
int  nitems 
)

Definition at line 107 of file strlist.c.

◆ newstringlist()

int newstringlist ( char ***  list,
int *  n,
int  size 
)

Definition at line 22 of file strlist.c.

◆ printstrlist()

void printstrlist ( char **  list,
int  n,
FILE *  f 
)

Definition at line 99 of file strlist.c.

◆ strlistsd()

int strlistsd ( char **  list1,
char **  list2,
char **  listdiff,
int  n1,
int  n2,
int  nsd 
)

Definition at line 198 of file strlist.c.

◆ strlistu()

int strlistu ( char **  list1,
char **  list2,
char **  listunion,
int  n1,
int  n2,
int  nu 
)

Definition at line 171 of file strlist.c.