My experiences in porting code (from VAX/VMS with 4-byte ints to MS/DOS/WOINDOWS with 2-byte ints) were that you can avoid most of the problems by explicitliy declaring your variables as "short" or "long".
Well, most but not all problems: a whole bunch of library routines (i.e. printf, memcpy) take an int as parameter. And therefore int's have to be the size the library is expecting, right ?
To be honest: with printf (and vprintf for variable arglists) my aproach was VERY empiric ...
regards, Petzi
--
Petzi Schweda (sca@gese.ge14.mdadv.gv.at)
MD-ADV, Municipality of the City of Vienna, Austria