delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/05/13:58:46

Date: Sun, 5 Sep 1999 16:16:47 +0100
From: Peter Restall <pete AT restall DOT net>
Message-Id: <199909051516.QAA00700@burdock.restall.net>
To: djgpp AT delorie DOT com
Subject: sscanf() problem solved !
Reply-To: djgpp AT delorie DOT com

I've solved my 'sscanf()' problem by simply declaring some local variables
as 'unsigned int's and then using 'sscanf()' to read them from my string.
After that, I cast them to their 'u_shortint' equivalents in the 'vidmode_t'
structure.  Hmmm...why didn't I try that before ?  Doh !  Thanks for your
help, Eli.  Bye,

	Pete =:-)


--
/*************** [burdock] ****************/
/* ____/|   pete AT restall DOT net              */
/* \ o.O|   http://www.iirc.net/petes/    */
/*  =(_)=                                 */
/*    U                                   */
/******************************************/

/******************************* [Windoze 98] ********************************/
/* Windows 98: n.                                        (Alex Satrapa).     */
/*   64 bits (and pieces) of bugs (and fixes) and featuritis tacked on to 32 */
/*   bit extensions and a graphical shell for a 16 bit patch to an 8 bit     */
/*   operating system originally coded for a 4 bit microprocessor, written   */
/*   by a 2 bit company that can't stand 1 bit of competition, and has not a */
/*   bit of respect for their customers.                                     */
/*****************************************************************************/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019