<pedantic mode>
Minor point — the myString declaration and cast should be
char *
not
char **
<pedantic mode/>
On Mar 10, 2014, at 9:27 AM, David Michel <[email protected]> wrote:
> Hi All,
>
> I'm using a Waveform record of type char to represent a string (not using a Stringin or Stringout record since this string has more than 40 characters).
>
> That works well and I can easily put a string into this record such with caput -a and read it back with caget -s
>
> Now, I need to use this string in an aSub record but I'm having difficulties in doing so.
>
> char ** myString;
> myString = (char **) precord->a;
> printf("%s\n",myString);
>
> The results of the printf statement shows only the first character of the string in ASCII.
>
> Any idea of I can solve this?
>
> Many thanks
> David
--
Eric Norum
[email protected]
- Replies:
- Re: Using a Waveform record (char type representing a String) as input to an aSub record Benjamin Franksen
- References:
- Using a Waveform record (char type representing a String) as input to an aSub record David Michel
- Navigate by Date:
- Prev:
Re: Using a Waveform record (char type representing a String) as input to an aSub record Andrew Johnson
- Next:
help! can the epics monitor many pv in the same time,thanks zgang
- 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: Using a Waveform record (char type representing a String) as input to an aSub record Andrew Johnson
- Next:
Re: Using a Waveform record (char type representing a String) as input to an aSub record Benjamin Franksen
- 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
|