Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 08e15fc958b2431d97480ba45764e38b > files > 75

maradns-1.3.07.09-5.fc15.i686.rpm

.\" Process this file with
.\" groff -man -Tascii cryptday.1
.\"
.TH js_has_sanity 3 "August 2000" JS "js library reference"
.\" We don't want hyphenation (it's too ugly)
.\" We also disable justification when using nroff
.hy 0
.if n .na
.SH NAME
js_has_sanity \- determine if a given js_string object has valid data
object
.SH SYNOPSIS
.nf
.B #include "JsStr.h"
.sp
.B "int js_has_sanity(js_string *js);"
.fi
.SH DESCRIPTION
.B js_has_sanity
determines whether a given
.I js_string
object contains valid data.  Valid data meaning:
.IP 1)
A member of the 
.I js_string 
structure set up for sanity checks, 
.I is_good,
has the expected value, 
.I JS_SANE_NUMBER.
.IP 2)
The number of units in the 
.I js_string
structure is less than or equal to the number of maximum allowed units.
.SH "RETURN VALUE"
.B js_has_sanity
returns JS_ERROR if the 
.I js_string 
object in question is not valid, JS_SUCCESS otherwise.
.SH AUTHOR
Sam Trenholme <kiwi-zttfryb@koala.samiam.org>