1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 <2007> 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 2006 <2007> 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: problem using streams with asyn for Agilent E5810A Ethernet->GPIB |
From: | Eric Norum <[email protected]> |
To: | tech talk <[email protected]> |
Cc: | "Rodney R. Porter" <[email protected]>, [email protected] |
Date: | Mon, 14 May 2007 08:32:19 -0500 |
Hi,
The %c and %s input formats work like in scanf (the implementation actually use sscanf). Thus, %s stops reading at the first whitespace. This is probably not what you want. %39c only stops reading after 39 characters or at end of string. For more information see the manual pages for scanf.
-- Eric Norum <[email protected]> Advanced Photon Source Argonne National Laboratory (630) 252-4793