Is *& Legal?
Eric Ladner
clad@chevron.com
Tue Nov 9 09:18:00 GMT 1999
Erik Berry wrote:
> Some compilers allow function definitions like this in header files:
>
> int my_function(char *&next);
>
> Is the *& construct legal in strict ANSI C? If so, is there a way to
> coax gcc (GNU c compiler) to accept this syntax? Apparently some HP/SUN
> compilers accept this by default, but gcc doesn't.
>
> Thanks,
> Erik
You may just need to add parens to avoid order of operations confusion
between different compilers.
Eric
--
================================================================
Eric Ladner | HPUX Systems Admin, Oracle DBA
Pascagoula Refinery | Java Programmer, Perl scripter, C++
Chevron Products Company | programmer, etc., etc., etc.
More information about the Gcc-help
mailing list