Nested Comments in C -- A recent experience

Gary Jackoway gary at hpavla.AVO.HP.COM
Tue Mar 13 23:19:13 AEST 1990


>  (void) memcpy(/*targ*/ (void *) &x, /*src*/ (void *) &y, sizeof(y));

Aid.
----------
Can anyone actual understand this line?  I find imbedded comments
like this a nuisance.  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));

Just a thought.
Gary Jackoway



More information about the Comp.lang.c mailing list