home *** CD-ROM | disk | FTP | other *** search
-
- /* (c)Copyright Sequiter Software Inc., 1987-1990. All rights reserved.
-
- f4true.c
- */
-
- #include "d4base.h"
-
- extern BASE *v4base ;
-
- /* f4true
-
- Returns a true or false.
-
- -1 on ERROR
- 0 on logical FALSE or numeric 0
- 1 otherwise
- */
-
- f4true( long field_ref)
- {
- char char_value ;
-
- char_value = *f4ptr( field_ref ) ;
- if ( char_value == 'Y' || char_value == 'y' ||
- char_value == 'T' || char_value == 't' )
- return( 1 ) ;
- else
- return( 0 ) ;
- }
-