ossp-pkg/xds/xml-decode-double.c 1.1 -> 1.2
--- xml-decode-double.c 2001/07/23 16:33:03 1.1
+++ xml-decode-double.c 2001/07/24 13:04:43 1.2
@@ -31,25 +31,5 @@
int xml_decode_double(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args)
{
- int rc;
- xds_double_t* value;
- int len;
-
- /* Consistency checks. */
-
- assert(xds != NULL);
- assert(buffer != NULL);
- assert(buffer_size != 0);
- assert(args != NULL);
- if (xds == NULL || buffer == NULL || buffer_size == 0 || args == NULL)
- return XDS_ERR_INVALID_ARG;
-
- /* Format value into buffer. */
-
- value = va_arg(*args, xds_double_t*);
- rc = sscanf(buffer, "<double>%lE</double>%n", value, &len);
- if (rc <= 0)
- return XDS_ERR_UNDERFLOW;
-
- return len;
+ return -1;
}
|
|