Path: utzoo!attcan!uunet!eplrx7!udel!rochester!uhura.cc.rochester.edu!ur-valhalla!badri From: badri@valhalla.ee.rochester.edu (Badri Lokanathan) Newsgroups: comp.lang.c Subject: Re: retiring gets(3) Summary: A ha' penny's worth Message-ID: <1606@valhalla.ee.rochester.edu> Date: 23 Nov 88 16:27:09 GMT References: <1988Nov14.220842.3980@utstat.uucp> <8902@smoke.BRL.MIL> <8959@smoke.BRL.MIL> Organization: UR Dept. of Electrical Engg, Rochester NY 14627 Lines: 29 In article <8959@smoke.BRL.MIL>, gwyn@smoke.BRL.MIL (Doug Gwyn ) writes: > In article <471@gonzo.UUCP> daveb@gonzo.UUCP (Dave Brower) writes: > >Moral: There is _never_ a one shot test program. > > That is simply untrue. I've written scads of them over the years, > probably an average of one per week. I hate to add to a discussion that is going nowhere, but I must say I agree with Doug. As part of my research I design and implement many algorithms, most of which are modules for a bigger package. Almost all of them have a #ifdef DEBUG_MAIN main() { . . } #endif DEBUG_MAIN built into them for stand-alone debugging. Here, gets, puts, scanf are the easiest way of I/O and I use them all the time. It does not make any sense to worry about safe gets, coz' this part of the code is never going to be used by anybody for purposes other than testing. Quick and easy is the way to go. -- "Don't blame me for wanting more {) badri@ee.rochester.edu The facts are too hard to ignore //\\ {ames,cmcl2,columbia,cornell, I'm scared to death of poverty ///\\\ garp,harvard,ll-xn,rutgers}! I only want what's best for me."-UB40 /\ rochester!ur-valhalla!badri