[comp.sys.amiga.tech] Lattice C 5.04 -f8 bug

martin@enuxha.eas.asu.edu (Ross D. Martin) (11/16/89)

The following code does not work when compiled with -f8:

#include<string.h>
char *s = "hi";
main()
{
printf("%f\n", 4.*strlen(s));
}

However, the following works fine:

char *s = "hi";
main()
{
printf("%f\n", 4.*strlen(s));
}

So apparently there is some problem with -f8 and the builtin string functions
that string.h defines.  The apparent fix is not to include string.h. 


		Ross Martin
		martin@enuxha.eas.asu.edu