Main Page | Data Structures | File List | Globals

libgu/torf.c File Reference

Parse boolean values. More...

#include "before_system.h"
#include "gu.h"

Functions

int gu_torf (const char *s)
 Parse a boolean value.

int gu_torf_setBOOL (gu_boolean *b, const char *s)
 Parse a boolean value.


Detailed Description

Parse boolean values.


Function Documentation

int gu_torf const char *  s  ) 
 

Parse a boolean value.

Read a True or False answer and return ANSWER_TRUE, ANSWER_FALSE, or ANSWER_UNKNOWN.

int gu_torf_setBOOL gu_boolean *  b,
const char *  s
 

Parse a boolean value.

Set a gu_boolean to the answer. If the answer is not true or false, don't change the gu_boolean and return -1.


Generated on Fri Feb 20 15:17:52 2004 for PPR Libraries by doxygen 1.3.5