EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: need help
From: Eric Norum <[email protected]>
To: [email protected], TECHTALK Tech-Talk <[email protected]>
Date: Fri, 2 Jun 2006 09:01:27 -0500
Ooops. Typo in my reply. The assignment-suppression character (*) must appear right after the %.
Here's the correct format:


If you want to convert the second value in the reply the scanf format string is a little more complicated.
"%*[^,],%lf"
This looks a little complex, but isn't too bad if you consider each part separately:
%*[^,] -- Match any characters that are not a comma. Do not store the result.
, -- Match a comma
%lf -- convert the floating point value and store into a double.



-- Eric Norum <[email protected]> Advanced Photon Source Argonne National Laboratory (630) 252-4793



References:
need help btanu
Re: need help Eric Norum

Navigate by Date:
Prev: Re: Failed to install mca on WinXP marco_hair
Next: Motor.h file broken for C Doug Murray
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: need help Eric Norum
Next: communications with Keithley 6485, was: Re: need help Maren Purves
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·