Path: utzoo!attcan!uunet!munnari.oz.au!sirius.ucs.adelaide.edu.au!levels!marwk From: marwk@levels.sait.edu.au Newsgroups: comp.lang.c Subject: LARGE ARRAYS: example Message-ID: <15763.27664ad2@levels.sait.edu.au> Date: 12 Dec 90 15:20:49 GMT Organization: Sth Australian Inst of Technology Lines: 25 If you were to change the far pointer to a huge pointer then you would have the correct results displayed for a huge amount of data. Ray ----------------------- #include #include typedef char far * MYLARGE; /* change far to huge */ long i; MYLARGE lots; #define SIZE 65538L void main(void) { lots = (MYLARGE) farmalloc(SIZE); for (i = 0; i < SIZE; ++i) lots[i] = i % 10L + 1; for (i = 0; i < 10L; ++i) printf("%ld: %2d\n", i, lots[i]); }