TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Mike Bilow
from: Bill Patterson
date: 1995-08-02 21:34:16
subject: Re: gcc2

* In a message originally to Mike Bilow, Bill Patterson writes:

 MB> Bill Patterson wrote in a message to All:
 MB> 
 MB> The problem is that gets() is inherently unstable because it was defined
 MB> that way in the C language, and its use in new code is to be deprecated. 
 MB> There is no way for a caller to notify gets() about the length of the
 MB> buffer available to it, and therefore no way for gets() to be sure that
 MB> it does not overrun that buffer.
Wow. That is an issue. I'll be sure to adhere to fgets(). If I'm not
mistaken though, I got the same error from fgets(). 

 MB> GCC/2 is no longer supported.  The EMX package is recommended and
 MB> supported.
 MB>  
 MB> -- Mike
So I hear. 

I found a fgets() routine in the K&R manual. It won't work either. It
just returns from the call with no one ever typing anything in. I did a
fflush(stdio) prior to the call too. It looks like somethig is wrong with
gcc so I'm trying to get EMX going now. Thanks a ton for taking the time to
help me out.

Bill



--- LoraBBS-OS/2 v2.40+
* Origin: Planet X * Warp Co-Ordinates: 407-799-0975 (1:374/2528.0)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 515 628 704 713/888 800/1 7877/2809
@PATH: 374/2528 1 3615/50 396/1 270/101 105/103 42 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.