[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnucap-devel] Gnucap-devel Digest, Vol 92, Issue 10
From: |
Abhinav singh |
Subject: |
Re: [Gnucap-devel] Gnucap-devel Digest, Vol 92, Issue 10 |
Date: |
Tue, 17 Jun 2014 01:19:33 +0530 |
address@hidden>
>> Cc: address@hidden
>> Subject: Re: [Gnucap-devel] Gnucap Integrated waveform displayer
>
> Message: 3
> Copying a wave:
>
> // get a pointer to the wave, as you do now.
> WAVE* w = find_wave();
>
> // returns NULL if it fails, (I need to change this)
> if (w) {
>
> // now copy it into a local
> WAVE wcopy(*w);
>
> // or copy it to something that remains after the function exits
> WAVE* wcopyptr(new WAVE(*w));
>
> // handle when find_wave fails
> }else{untested();
> }
>
Will try this out to replace existing structure.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Gnucap-devel] Gnucap-devel Digest, Vol 92, Issue 10,
Abhinav singh <=