Re: squid for HP

From: N.Frasheri <nfra@dont-contact.us>
Date: Fri, 6 Feb 1998 20:15:49 +0100

Continue...

It is the folowing suite of commands that fail (I just did a small program
to check it out):

===================================================
#include <stdio.h>
const char *const localhost="127.0.0.0";
main()
{
        safe(localhost);
}

safe (const char *buf)
{
        int a1,a2,a3,a4;
        printf("%s\n",buf);
            if (sscanf(buf, "%d.%d.%d.%d", &a1, &a2, &a3, &a4) != 4)
        printf("bloub\n");
}
==================================================

This piece of program, similar to a fragment of squid, aborts with "Bus
error" when running sscanf ...

The same program compiled with CC -Ae runs OK ...

Question: how to modify something in order to use sscanf of CC instead that
of gcc???

Neki
Received on Fri Feb 06 1998 - 12:05:19 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:38:48 MST