[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mxalloc()



Hi!

I have a problem with Mxalloc() here, it looks like it allocates 2
megs when I asks for 256 bytes...

	AVtext = (char*) Mxalloc(256, 0x0003|0x0028);

I'm trying to allocate 256 bytes (buffer for AV commandlines) as
global memory under MiNT, have I completely misunderstood Mxalloc()?
According to the Atari Compendium (HTML-version) and the example in
the BubbleGEM hypertext it *should* be correct.

'AVtext = (char*) Malloc(256);' works without problems.


/*
** Jo Even Skarstein    http://www.stud.ntnu.no/~josk/
**
**    beer - maria mckee - atari falcon - babylon 5
*/