Re: Gnucap-devel Digest, Vol 92, Issue 10
Abhinav singh <[email protected]>
| Newsgroups | gmane.comp.gnu.gnucap.devel |
|---|---|
| Message-ID | <CAPzf0gJM9cQ9Cf6bEjQmE9omq3pfxkGCy=VROBMaSdA_jrz-8Q@mail.gmail.com> |
[email protected]> >> Cc: [email protected] >> 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.