Date: Wed, 15 Nov 2000 20:05:31 -0500 Message-Id: <200011160105.UAA01282@envy.delorie.com> X-Authentication-Warning: envy.delorie.com: dj set sender to dj AT envy DOT delorie DOT com using -f From: DJ Delorie To: djgpp-workers AT delorie DOT com In-reply-to: <3A1328A7.C9866232@bigfoot.com> (message from Richard Dawe on Thu, 16 Nov 2000 00:21:59 +0000) Subject: Re: snprintf() diff References: <200011132023 DOT PAA04930 AT qnx DOT com> <3A1328A7 DOT C9866232 AT bigfoot DOT com> Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > static __inline__ int __putc_raw(int const x,FILE *const p) > { > if(p->_cnt>0) > { > p->_cnt--; > return((unsigned char)(*(p->_ptr++)=(unsigned char)x)); > } > else if (p->_flag & _IOSTRG) This is making this macro pretty complex. Would it be better to move the _IOSTRG logic into flsbuf, so that it acts like a "disk full" condition when the string buffer is empty?