Indefinite-length array as member of struct: how?

s m ryan smryan at garth.UUCP
Sun Jul 30 07:11:56 AEST 1989


>	nodeptr->string = (char *)nodeptr+sizeof(struct node);

or	nodeptr->string=(char*)(nodeptr+1)
-- 
23. Till life was gone he kept his hoard          Steven Ryan: ingr!garth!smryan
when Fanir hewed with biting sword                 2400 Geng Road, Palo Alto, CA
as father rested. Hreithmar yelled            `Do you mean Nancy?' `I'm not mean
for daughters twain ere life was quelled.       to Nancy--she like it that way.'



More information about the Comp.lang.c mailing list