Is this portable?

Doug Gwyn gwyn at smoke.BRL.MIL
Wed May 10 23:46:23 AEST 1989


In article <1914 at plx.UUCP> evan at plx.UUCP (Evan Bigall) writes:
>This works on my machine, but I am curious as to whether it is "officially"
>correct and portable C.

The pointer arithmetic was okay; ptr[-1] is legal.
(The program failed to #include <stdio.h> and return a value from main(),
however.)



More information about the Comp.lang.c mailing list