home *** CD-ROM | disk | FTP | other *** search
- /* ------------------------------------------------------ */
- /* SIZETEST.C */
- /* (c) 1991 Borland International */
- /* All rights reserved. */
- /* ------------------------------------------------------ */
- /* veröffentlicht in DOS toolbox 3'92 */
- /* ------------------------------------------------------ */
-
- #include <conio.h>
- #include <dos.h>
-
- /* To compare performance with default values,
- omit these lines */
-
- extern unsigned _heaplen = 1024U; /* default = 0 */
- extern unsigned _stklen = 1024U; /* default = 4096 */
-
- int main (void) {
- unsigned long size = (_SS*16ul + _SP) - _psp*16ul;
-
- cputs("Hello, Borland fans!\r\n");
- cprintf("Approximate image = %lu (0x%lx) bytes\r\n",
- size, size);
- return 0;
- }
- /* ------------------------------------------------------ */
- /* Ende von SIZETEST.C */