Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!rutgers!cmcl2!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: gets limits? Message-ID: <10118@smoke.BRL.MIL> Date: 26 Apr 89 05:28:26 GMT References: <9300001@scsmo1.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 10 In article <9300001@scsmo1.UUCP> tim@scsmo1.UUCP writes: >What does ANSI say about gets. It seem to me that there is NO way to >figure out how big to make the buffer for the beast. Yes, that's right. >what rules should be followed with gets[?] Use it only when you know that the buffer will not be overrun. In other case, use something like fgets().