[comp.unix.questions] what algorothm does ls use for sizing output row/column format?

john@beaudin.UUCP (John Beaudin) (05/07/91)

I mean: how does ls determine how many rows & columns to use for the
output? Assume a display width of w and a maximum filename length of n.
I don't have access to the src and always wondered.
-- 
"The Battle of the Gulf was won on the playing fields of Atari" - J. Beaudin
My permanent .signature is awaiting apropriate display technology