Nested Comments in C -- A recent experience

Walter Bright bright at Data-IO.COM
Thu Mar 15 07:19:22 AEST 1990


In article <9130008 at hpavla.AVO.HP.COM> gary at hpavla.AVO.HP.COM (Gary Jackoway) writes:
<<  (void) memcpy(/*targ*/ (void *) &x, /*src*/ (void *) &y, sizeof(y));
<Wouldn't
<//	           target:      source:
<    (void) memcpy((void *) &x, (void *) &y, sizeof(y));
<be more readable? Or maybe:
</*  Copy y into x	*/
<    (void) memcpy((void *) &x, (void *) &y, sizeof(y));

It's more readable if you eliminate the redundant clutter:
	memcpy(&x,&y,sizeof(y));	/* Copy y into x	*/



More information about the Comp.lang.c mailing list