* Revision 1.3 2002/04/01 18:31:22 oetiker
* "!" takes a higher preference than "||" this means rrd_update N:: would
* segfault -- Oliver Cook <ollie@uk.clara.net>
* Revision 1.3 2002/04/01 18:31:22 oetiker
* "!" takes a higher preference than "||" this means rrd_update N:: would
* segfault -- Oliver Cook <ollie@uk.clara.net>
{
char res[LAST_DS_LEN+1], *a1, *b1, *r1, *fix;
int c,x,m;
{
char res[LAST_DS_LEN+1], *a1, *b1, *r1, *fix;
int c,x,m;
fix=b;
while (isdigit((int)*fix))
fix++;
*fix = 0; /* maybe there is some non digit data in the string */
if(!isdigit((int)*a) || !isdigit((int)*b))
return DNAN;
fix=b;
while (isdigit((int)*fix))
fix++;
*fix = 0; /* maybe there is some non digit data in the string */
if(!isdigit((int)*a) || !isdigit((int)*b))
return DNAN;
a1 = &a[strlen(a)-1];
m = max(strlen(a),strlen(b));
if (m > LAST_DS_LEN) return DNAN; /* result string too short */
a1 = &a[strlen(a)-1];
m = max(strlen(a),strlen(b));
if (m > LAST_DS_LEN) return DNAN; /* result string too short */