Re: squid for HP

From: N.Frasheri <>
Date: Fri, 6 Feb 1998 20:15:49 +0100


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="";

safe (const char *buf)
        int a1,a2,a3,a4;
            if (sscanf(buf, "%d.%d.%d.%d", &a1, &a2, &a3, &a4) != 4)

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???

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