Xref: utzoo comp.lang.c:8161 comp.sys.ibm.pc:13152 Path: utzoo!utgpu!water!watmath!watdragon!violet!ajmyrvold From: ajmyrvold@violet.waterloo.edu (Alan Myrvold) Newsgroups: comp.lang.c,comp.sys.ibm.pc Subject: C declaration styles Message-ID: <5699@watdragon.waterloo.edu> Date: 14 Mar 88 19:38:10 GMT Sender: daemon@watdragon.waterloo.edu Distribution: na Lines: 35 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) { /* Body of function */ } 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; { /* Body of function */ } Does anyone have a C program to convert from the one style of declarations to the other ?? Please EMAIL responses to me at ajmyrvold@violet.waterloo.edu and I will summarize. ------------------------------------------------------------------- What? You were in the next room all this time? I would have just come over to see you! ------------------------------------------------------------------- Alan Myrvold ajmyrvold@violet.waterloo.edu -------------------------------------------------------------------