Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on What Every C Programmer Should Know About Undefined Behavior #2/3. Parent comment
- macro expansions
- the author took an example from a larger function and simplified it into a minimal test case. For example, there might be a
#define BUFSIZE 128; ... j = buffer+i; ... if( (i < 0) || (i-BUFSIZE >= buffer))
There are no comments on this comment yet.
- macro expansions
- the author took an example from a larger function and simplified it into a minimal test case. For example, there might be a
Still weird (i - BUFSIZE could underflow), but more believable.