awips2/nativeLib/rary.ohd.whfs/inc/general/TokenizeOptionString.h
root 9bb8decbcf Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: 133dc97f67 [formerly a02aeb236c] [formerly 9f19e3f712] [formerly 06a8b51d6d [formerly 9f19e3f712 [formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]]
Former-commit-id: 06a8b51d6d
Former-commit-id: 377dcd10b9 [formerly 3360eb6c5f]
Former-commit-id: 8e80217e59
2012-01-06 08:55:05 -06:00

44 lines
1.4 KiB
C

/*******************************************************************************
* FILENAME: tokenize_option_string.h
* DESCRIPTION: Contains the prototype for the tokenize_option_string
* routine. Contains the definition of the
* OptionValuePair structure.
*
* ORIGINAL AUTHOR: Bryon Lawrence
* CREATION DATE: September 22, 2003
* ORGANIZATION: OHD / HSEB
* MACHINE: HP-UX, Red Hat Linux
* MODIFICATION HISTORY:
* DATE PROGRAMMER DESCRIPTION/REASON
* 9/22/2003 Bryon Lawrence Original Coding
********************************************************************************
*/
#ifndef TOKENIZE_OPTION_STRING_H
#define TOKENIZE_OPTION_STRING_H
#include "List.h"
#define TOKENIZE_OPTION_OK 0
#define TOKENIZE_OPTION_MALLOC_ERROR 1
#define TOKENIZE_OPTION_MISSING_EQUAL 2
#define TOKENIZE_OPTION_NULL_ARGUMENT 3
typedef struct OptionValuePair {
Node node ;
char * option_name ;
char ** value_string ;
int number_of_values ;
List list ;
} OptionValuePair ;
int TokenizeOptionString ( const char * option_string ,
OptionValuePair ** pOptionValuePair ) ;
void FreeOptionValueList ( OptionValuePair ** pOptionValuePair ) ;
#endif /* #ifndef TOKENIZE_OPTION_STRING_H */