C declaration styles
terry
terry at wsccs.UUCP
Thu Mar 24 14:47:52 AEST 1988
In article <5699 at watdragon.waterloo.edu>, ajmyrvold at violet.waterloo.edu (Alan Myrvold) writes:
} I need help porting C programs around.
}
} When I write my C functions on my personal computer, my declarations
} are often like this :
}
} void foo(int x, double y)
} When I want to run my programs on UNIX, my declarations need to be
} like this :
}
} #define void
} void foo(x,y)
} int x;
} double y;
Ahhhh, the pitfalls of the emerging ANSI "standard" :-(.
The answer is simple, really. Don't use the first method until it IS a
standard.
terry at wsccs
More information about the Comp.lang.c
mailing list