Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!psuvax1!rutgers!cmcl2!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: How do you truncate a file? Message-ID: <16128@smoke.brl.mil> Date: 12 May 91 03:25:53 GMT References: <1991May6.194614.9641@pensoft.uucp> <12653@sybase.sybase.com> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 6 In article <12653@sybase.sybase.com> djd@sirdan.sybase.com (dan debrunner) writes: >Actually a correct way would have been even better. Remember putchar() >is a macro on many platforms which evaluates its argument twice. It had better not be -- that is not only not conformant to the C standard, it would break LOTS of code, such as the putchar(getchar()) loop.