TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: Bill Patterson
date: 1995-07-31 00:02:20
subject: gcc2

Hi. 
I'm using gcc2 2.5.8 on the Hobbes RTR Nov 1994 CD.

I'd use emx except I can't get it to run. Anyways, gcc works (mostly)
great. I do have one little problem though. When I use gets() I get a error
when I try to run my program. Printed on the screen is a message saying
gets() is unstable. What is a suitable bit of code to use that I can
substitute for gets(). I've tried all sorts of work arounds using getchar()
and getc(). I can't seem to properly detect the end of the input string (a
EOF or a CR). Could some one punch in a brief example of a gets() routine?

Even better, is there a way to use newer libraries with gcc that might have
a fixed gets()?

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 712/407 515
SEEN-BY: 712/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™.