]> granicus.if.org Git - php/commitdiff
- Added some docs here so that nobody needs to figure it out once more.
authorDerick Rethans <derick@php.net>
Tue, 8 Aug 2006 09:46:46 +0000 (09:46 +0000)
committerDerick Rethans <derick@php.net>
Tue, 8 Aug 2006 09:46:46 +0000 (09:46 +0000)
Zend/zend_operators.h

index ba86413044525b1ad7efd31327f41ed075127524..82743324177ecbeed3184ca0e90a1e6251e8ac73 100644 (file)
@@ -66,6 +66,15 @@ ZEND_API zend_bool instanceof_function_ex(zend_class_entry *instance_ce, zend_cl
 ZEND_API zend_bool instanceof_function(zend_class_entry *instance_ce, zend_class_entry *ce TSRMLS_DC);
 END_EXTERN_C()
 
+/**
+ * Checks whether the string "str" with the length "length" is a numeric string.
+ *
+ * The function returns 0 if the string did not contain a string; IS_LONG if
+ * the string contained a number that fits in the integer range and IS_DOUBLE
+ * in case it did not. The long value is returned into the pointer *lval if
+ * that pointer was not NULL or into the pointer *dval if that pointer was not
+ * NULL.
+ */
 static inline zend_bool is_numeric_string(char *str, int length, long *lval, double *dval, int allow_errors)
 {
        long local_lval;