From: ANDREW HURRELL Newsgroups: comp.os.msdos.djgpp Subject: Re: "scanf" in grx20 Date: Fri, 31 Jan 1997 16:47:23 +0000 Organization: Precision Acoustics Ltd Lines: 31 Message-ID: <32F2221B.18B1@acoustics.co.uk> References: Reply-To: andrew AT acoustics DOT co DOT uk NNTP-Posting-Host: norbert.cerbernet.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Mijail Guillemard wrote: > > is there some function "analoguos" to scanf in grx20? > (in the same way as GrTextXY is "analoguos" to printf) > thanks for commentaries. I've found the best way around this problem is to use the getkey() function {you'll need to #include }. I know it means acquiring data one char at a time, but you can then use string functions for any further manipulation. If there are any DJGPP Gurus out there with a better solution, I'd like to know !! Regards Andrew Hurrell -- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ You can find us on the World Wide Web at: http://www.acoustics.co.uk/pa . Please respond to: Name: Andrew Hurrell Address: Precision Acoustics Ltd E-Mail: andrew AT acoustics DOT co DOT uk 1 Colliton Walk Telephone: +44 1305 264669 Dorchester Fax: +44 1305 260866 Dorset England DT1 1TZ