Path: utzoo!mnetor!uunet!husc6!psuvax1!gondor.cs.psu.edu!schwartz From: schwartz@gondor.cs.psu.edu (Scott Schwartz) Newsgroups: comp.lang.c Subject: Re: Pascal --> C question Message-ID: <3352@psuvax1.psu.edu> Date: 10 Mar 88 17:16:56 GMT References: <650001@hpcilzb.HP.COM> <4940001@hpiacla.HP.COM> Sender: netnews@psuvax1.psu.edu Reply-To: schwartz@gondor.cs.psu.edu (Scott Schwartz) Organization: Penn State University Lines: 14 In article <4940001@hpiacla.HP.COM> mlight@hpiacla.HP.COM (Mike Light ) writes: >> SinWave: packed array[0..255] of char; >> char SinWave[256]; >Almost any pascal-ism has an equivalent in C (but not necessarily >the other way around). Except that the useful ones are never that easy. One of my favorites: bitstring: packed array[0..1023] of boolean; In C you have to do bit-fiddling by hand to get the same effect. -- Scott Schwartz | Your array may be without head or schwartz@gondor.cs.psu.edu | tail, yet it will be proof against | defeat. -- Sun Tzu, "The Art of War"