comparison subopt-helper.c @ 14736:2ef20aa3623b

Move generic tests to a common place.
author al
date Sat, 19 Feb 2005 20:14:00 +0000
parents cfe2bbf96000
children e678e306068e
comparison
equal deleted inserted replaced
14735:44810b387934 14736:2ef20aa3623b
261 valp->len = match - str; 261 valp->len = match - str;
262 valp->str = str; 262 valp->str = str;
263 263
264 return match; 264 return match;
265 } 265 }
266
267
268 /*** common test functions ***/
269
270 /** \brief Test if i is not negative */
271 int int_non_neg( int * i )
272 {
273 if ( *i < 0 ) { return 0; }
274
275 return 1;
276 }
277 /** \brief Test if i is positive. */
278 int int_pos( int * i )
279 {
280 if ( *i > 0 ) { return 1; }
281
282 return 0;
283 }