Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jun 1999 19:38:06 -0600 (MDT)
From:      Jonathon Doran <doranj@Colorado.EDU>
To:        freebsd-questions@freebsd.org
Subject:   Re: Replacement for gets()
Message-ID:  <199906270138.TAA20837@ucsu.Colorado.EDU>
In-Reply-To: <19990626201956.A1542@gforce.johnson.home> from "Glenn Johnson" at Jun 26, 99 08:19:56 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> Programs that use gets() spit out the following warning:
> 
> 	warning: this program uses gets(), which is unsafe.
> 
> What is the proper function to use in place of gets()?

fgets()

The warning appears to be working well.

Jon Doran


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906270138.TAA20837>