CSAPP-3e
CSAPP-3e copied to clipboard
Seems ch3 3.61 is not correct, fyi is a possible correct one
/** P 3-61 long cread(long *xp) { return (xp ? *xp : 0); } Explain: The key point is to avoid * and xp come together. */ long cread_alt(long xp) { long a=0; return *(xp? xp:a); }