Subject: |
string to binary conversion in the db |
From: |
[email protected] (Marty Kraimer) |
Date: |
Fri, 10 Feb 1995 09:13:39 -0600 |
The following changes seem safe (I agree with John that aliasing, etc.
is too dangerous). I also agree that someting should be done because
this request has been expressed previously.
For all the choice types (DBF_ENUM, DBF_GBLCHOICE, DBF_CVTCHOICE,
DBF_RECCHOICE, DBF_RECCHOICE) do the following for DBR_STRING.
1) Compare the string with each string choice just like existing code.
If success then this is just like existing code.
2) If 1) fails then do the following:
perform an sscanf on the string to convert to unsigned int.
If the following are true then change the field:
a) The number of characters consumed = strlen(input string)
b) The index value is < number of choices for the field.
If either a or b is false then fail just like existing code.
Marty Kraimer
- Navigate by Date:
- Prev:
Re: string to binary conversion in the db John R. Winans
- Next:
Re: EPICS on the Alpha 415
- 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
- Navigate by Thread:
- Prev:
Re: string to binary conversion in the db John R. Winans
- Next:
Observations on EPICS Alpha port & DEC support of VxWorks 415
- 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
|