[EMAIL PROTECTED] wrote:
>
> On Mon, May 01, 2000 at 01:22:32PM -0700, [EMAIL PROTECTED] wrote:
> > On Mon, May 01, 2000 at 10:19:57PM +0200, Federico Barbazza wrote:
> > > Hi all,
> > > i have a big program with stralloc variable.
> > > So, in qmail-pop3d i declared a variable:
> > > stralloc *arrayname;
> > > arrayname = (stralloc *) alloc(numm * sizeof(stralloc))
> >
> > Is that the exact code?
> >
> > If so, should be it sizeof(stralloc) be the sizeof the structure you
> > are playing with?
>
> Hoy! - where did that typo come from? I meant to say,
> should the sizeof(stralloc) be sizeof(yourstructure). I hope that
> was clear.
stralloc is a structure with a int and a char*
now i tried to do this declaration:
struct stralloc *arrayname;
struct arrayname = (struct stralloc *) alloc(numm *sizeof(struct
stralloc))
but it doesn't work.
Thanks anyway.