home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
RISC DISC 1
/
RISC_DISC_1.iso
/
pd_share
/
code
/
unixlib
/
!UnixLib
/
test
/
c
/
allocatest
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Text File
|
1994-03-08
|
280 b
|
25 lines
#include <stdlib.h>
#include <time.h>
#include <stdio.h>
#include "alloca.h"
#define ASIZE 2048
int
main ()
{
int *b;
register int i;
srand (time (0));
b = alloca (ASIZE);
for (i = 0; i < (ASIZE >> 2); i++)
b[i] = rand ();
printf ("%x\n", b);
return 0;
}