Uh, this may be a little rusty, but you can try more or less:
void main()
{
int *b;
b = procedure();
free(a);
}
int *procedure(){
int *a = malloc(10*sizeof(int));
return a;
}
This isn't a homework question is it?
thx
m
Matt Billenstein
matt at vazor.com
http://www.vazor.com/