best way to return (char *)

Doug Gwyn gwyn at smoke.BRL.MIL
Sun Jun 25 14:19:12 AEST 1989


In article <10345 at claris.com> kevin at claris.com (Kevin Watts) writes:
>	char buffer[20];
>	*(int *) buffer = 20;

Of course, this fails on a word-oriented architecture when the buffer
happens not to be properly aligned.



More information about the Comp.lang.c mailing list