Hi This is because the "\n" causes the output buffer to flush. It's not the printf, but the "\n" in the format string that's causing the print. Ed Hoeffner 1-271 BSBE 312 Church St. SE Mpls, MN 55455 hoeffner at dcmir.med.umn.edu 612-625-2115 612-625-2163 fax