while (1) {
calc(x++);
}
which is an infinite loop, since the expression x <= max is always true Blank One line
0 Two lines
1 To first line of next page
+ No advance cat sales.csv | awk -F',' '{print $1}'
but I'd prefer cut -d, -f1 sales.csv cat sales.csv | awk -F',' '{print $1}' | sort | uniq
can even be further simplified to cut -d, -f1 sales.csv | sort -u mid = ((unsigned int)low + (unsigned int)high)) >> 1;
in the blog may still be wrong if the sum ((unsigned)low + (unsigned)high)) produces a carry. for (size_t i = len; i > 0; --i) {
// use i-1 as the array index
}
or, size_t i = len
while (i-- > 0) {
// use i as the array index
} ls -1 | uniq -u -w4
using GNU uniq, for these special filenames. Unfortunately, Posix does not define -w option for uniq.
is nicer than
Notice that, in the former case, the array elements must be accessed as (*ap3)[i] whereas in the latter case the usual method a[i] is fine.