🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #25276

LSC, Mac limitations?

#25276
From: Bill Roberts
Date: Thu, 11 Feb 1988 21:27
36 lines
1729 bytes
I have a number of questions which I hope folks out yonder can shine some light
on:
1) I'm trying to port over to the Mac, from a UNIX system (4.3bsd) a relatively 
simple C program.  The program creates a linked list to store data read from 
a file.  Part of these data contain coordinates.  I go down the list, extracting
the coordinates and convert these to integers, which I then use as indices into 
an array whos element would be a pointer to the corresponding node in the list. 
I then want to use the indices of this array to represent the local coordinates
of a window. The problem is that the Mac apparently cannot handle any single 
segment larger than 32K and my array of pointers, for a window that is 250 X 250pixels, is much larger than 32K (62500 to be exact.)

2) Also, I have a line in the code like:

	stuff...

	while (sptr->next != NULL){
		 ...
		do some stuff;
	};
	more stuff...
LSC acts as though it doesn't recognize the NULL (0L).  Is it the case that I 
have to explicitly set the last node's next pointer to 0L?

3) Also, why doesn't scanf() echo characters while operating in the "console"
window?

Thanks in advance for any information on these issues.

--Bill

UUCP: {hplabs, seismo, nbires, noao}!hao!bill
CSNET: bill@ncar.csnet
ARPA: bill%ncar@CSNET-RELAY.ARPA
INTERNET: bill@hao.ucar.edu

  "... the Eagle Wing palace of the Queen Chinee'"
Technical Details
Message-ID: <1161@hao.ucar.edu>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!hao!bill

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!hao!bill
From: bill@hao.ucar.edu (Bill Roberts)
Newsgroups: comp.sys.mac
Subject: LSC, Mac limitations?
Message-ID: <1161@hao.ucar.edu>
Date: 11 Feb 88 21:27:27 GMT
Organization: High Altitude Obs./NCAR, Boulder, CO
Lines: 36
Keywords: 32K limit, scanf, dynamic memory alloc.