![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-10-31 21:22 |
47,815 topics / 349,930 posts / today 0 new / 48,290 members |
| DOS开发编程 & 发展交流 (开发室) » [Help] What are the requirements for using the malloc function? |
| Printable Version 831 / 2 |
| Floor1 dte | Posted 2003-11-01 00:00 |
| 初级用户 Posts 4 Credits 117 | |
| Floor2 alhan | Posted 2004-05-12 00:00 |
| 初级用户 Posts 11 Credits 125 | |
|
char *buf;
buf=malloc(1024);/* request 1024 bytes*/ [email protected] |
|
| Floor3 willsort | Posted 2004-05-12 00:00 |
| 元老会员 Posts 1,512 Credits 4,432 | |
|
Re dte:
On the surface, it seems to be a problem of the allocation size being too large. Although 0xec07 is less than 64K, after adding the code size, it may exceed 64K. If that is really the case, then you can't use the default tiny model to compile the code; you need to switch to a larger memory model. |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |