Path: utzoo!utgpu!attcan!uunet!lll-winken!lll-lcc!ncis.llnl.gov!helios.ee.lbl.gov!nosc!ucsd!rutgers!att!ttrdc!ttrde!stox From: stox@ttrde.UUCP (Kenneth P. Stox) Newsgroups: comp.unix.wizards Subject: Re: AT&T 630 terminal - software ?? Summary: WRONG !!!! lalloc() Message-ID: <826@ttrde.UUCP> Date: 20 Jan 89 19:35:05 GMT References: <1800005@spdyne> <9434@ihlpb.ATT.COM> <8794@alice.UUCP> Organization: AT&T, Skokie, IL Lines: 25 **FLAME ON** In article <8794@alice.UUCP>, debra@alice.UUCP (Paul De Bra) writes: > You seem a bit confused. The 630 is a nice terminal for creating a few > windows and such, but according to your standards its programmability > is lousy, because it won't run your little program. It uses 16 bit ints > and malloc (actualla called alloc) can only allocate 64k, using an > unsigned. We have provided a funtion lalloc() to accept an unsigned long for just such occurrences. The syntax is as follows: char *lalloc( lnbytes ) unsigned long lnbytes; free() is still applicable to this function. 16 bit ints were chosen for performance in this implementation, since most operations performed in the 630 MTG do not need the overhead and precision of 32 bit integers. **FLAME OFF** ========================================================================= Ken Stox 630 Development Group att!ttrde!stox AT&T Bell Labs, Skokie, Illinois