From owner-freebsd-questions@FreeBSD.ORG Wed May 26 10:17:04 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 04FB916A4CE for ; Wed, 26 May 2004 10:17:04 -0700 (PDT) Received: from out014.verizon.net (out014pub.verizon.net [206.46.170.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id 81B7443D49 for ; Wed, 26 May 2004 10:17:03 -0700 (PDT) (envelope-from cswiger@mac.com) Received: from [192.168.1.3] ([68.161.84.3]) by out014.verizon.net (InterMail vM.5.01.06.06 201-253-122-130-106-20030910) with ESMTP id <20040526171622.MQVR5247.out014.verizon.net@[192.168.1.3]>; Wed, 26 May 2004 12:16:22 -0500 Message-ID: <40B4D0E1.4080709@mac.com> Date: Wed, 26 May 2004 13:16:17 -0400 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040514 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Richard@Tribune-IS.com References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH at out014.verizon.net from [68.161.84.3] at Wed, 26 May 2004 12:16:22 -0500 cc: questions@FreeBSD.org Subject: Re: fputs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 May 2004 17:17:04 -0000 Richard Burnett-Godfree wrote: > In the code the software use fputs to output chars to the terminal. > > What seems to be happening is these are all buffered until the process > terminates and then they all come out rather than being sent to the terminal > during the program operation. Do I need to change an environment setting ?? > Should I swap to printf ?? What is the syntax ?? You ought to add a fflush(stdout) to the code when and where you want to be sure that the output buffer is written... -- -Chuck