mapprint
int mapprint(struct mapinfo *, off_t, off_t);
if (mapprint(&map, curoff, size - curoff) != 0) {
if (mapprint(&map, curoff + 1, lineend - curoff - 1) != 0) {
if (curoff < 0 && mapprint(&map, 0, lineend) != 0) {