Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!texsun!digi.lonestar.org!crichmon From: crichmon@digi.lonestar.org (Charles Richmond) Newsgroups: comp.os.minix Subject: Re: malloc() Keywords: malloc, dynamic allocatino Message-ID: <874@digi.lonestar.org> Date: 9 Aug 90 22:37:11 GMT Organization: DSC Communications, Plano Tx. Lines: 19 > There seems to be something wrong with my malloc() call ... well ... > is dosent give me anything when I do it ... i do something like this: ..... > struct stuff *np; > > np = (struct stuff *) malloc(sizeof(stuff)); The correct way to make this call is malloc(sizeof(struct stuff)) instead of malloc(sizeof(stuff)) See if this will fix your problem. Charles Richmond crichmon@digi.lonestar.org