what are the limits of mmeof() ?

Discuss PocketC for Palm OS (including Desktop Edition)

Postby techlinks on Fri May 18, 2001 6:31 pm

Is there some limit on how mmeof() is set at? I have modified the sample memo.c source that comes with PilotC. Basically, I open a memo and run a while loop as follows:

while (!mmeof())
data[ndata++] = mmgetl();

...then print the contents of data[] as follows:

puts("Number entries: "+ndata+"\n");
for (i=0;i<ndata;i++)
puts("\x95 "+data[i]+"\n");

The memo has exactly 109 lines of text where each line is approximately 15-30 characters long (e.g. "techlinks domain,F,34")

Anyhow, the output always ends at line 45, followed by two loud "beeping" sounds.

Could someone tell me what I may be doing wrong? Or is this a bug? The sample source (very small) is at the following link:


All replies will be greatly appreciated. Thank you all in advance.


Edited by - techlinks on 05/19/2001 06:36:04
Posts: 3
Joined: Fri May 18, 2001 1:51 pm
Location: USA

Postby Tom Miller on Sat May 19, 2001 3:28 pm

I think there's a limit to how much text you can output to this screen. Do a clear() after about 30 lines to test this theory.

Tom Miller
Posts: 80
Joined: Thu Mar 15, 2001 2:27 pm

Return to PocketC for Palm OS

Who is online

Users browsing this forum: No registered users and 2 guests