Oops, I amde a mistake in my previous example--it would work for a 1-D array, but not 2-D. Check out your LightSpeed C 3.0 User's Manual, pg. 219, which has a 3/4 page sample. Wayne Folta (folta at tove.umd.edu 128.8.128.42)