TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Bruce Partridge
from: andrew clarke
date: 2004-04-22 11:35:34
subject: [C] I (.p)--; ANSI

Wed 2004-04-21 09:49, Bruce Partridge (1:261/38.1) wrote to All:

 BP> Is this ANSI 89 or 99 neither or both?

 BP> float *p;
 BP> float y;

 BP> p = &y;
 BP> (*p)--;

 BP> I am moving code from one compiler to another, and I'm not sure if
 BP> this is a compiler limitation, a bug, or maybe and old
 BP> specification (89).

Looks fine to me.  Are you having problems?  Which compilers?

$cat > blah.c
float *p;
float y;

void f(void)
{
    p = &y;
    (*p)--;
}

$doscmd tcc -c blah.c
Turbo C  Version 2.01  Copyright (c) 1987, 1988 Borland International
blah.c:

        Available memory 458918

-- mail{at}ozzmosis.com

--- timEd/FreeBSD 1.11.b1
* Origin: Blizzard of Ozz, Melbourne, Victoria, Australia (3:633/267)
SEEN-BY: 633/267 270
@PATH: 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.