On Mon, 10 Jan 2022 15:23:42 +0100, Martijn van Duren wrote: > The lputs case is fairly straight forward and I'd like to get an OK > for that part.
I agree that fixing lputs() to honor psl is the best approach. Wouldn't the diff be simpler if you left the handling of 's' as-is but make the loop invariant l > 0 and decrement l accordingly? Using len instead of l is probably a little easier to read. - todd
