GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> CLI / V0-1-2 > cli / rhel6-64


Interface   Data Structures   File List   Data Fields   Globals  

CLI_present.c File Reference

Implements the CLI_present function. More...

#include <stdio.h>
#include <string.h>
#include <CLI/CLI_msgs.h>
#include <CLI/CLI_pubdefs.h>
#include <MDB/MDB_pubdefs.h>
#include <CLI_prvdefs.h>

Functions

unsigned int CLI_present (CLI_Control *ctl, const char *text)
 Test for the presence of a qualifier.


Detailed Description

Implements the CLI_present function.

CVS $Id: CLI_present.c,v 1.6 2011/03/25 00:51:25 apw Exp $
Author:
A.P.Waite

Function Documentation

unsigned int CLI_present ( CLI_Control ctl,
const char *  text 
)

Test for the presence of a qualifier.

Parameters:
ctl (Opaque) pointer to CLI control structure
text Text of the qualifier for which to search
Return values:
CLI_ABSENT Qualifier is absent
CLI_NEGATED Qualifier is present in its negated form
CLI_NOTCTL (Opaque) pointer does not point to CLI control structure
CLI_PRESENT Qualifier is present

References _CLI_Qual::flag, _CLI_Control::id, _CLI_Qual::next, _CLI_Tokens::qual, _CLI_Qual::text, and _CLI_Control::tokens.

Referenced by CLI_parse().


Generated on Tue Nov 29 16:30:28 2011 by  doxygen 1.5.8