set a string

Dr J.C. Ison jison at hgmp.mrc.ac.uk
Wed Jul 9 14:41:04 UTC 2003


Hi Carole

Many ways to crack an egg, but

AjPStr variable2=NULL;

variable2=ajStrNew(); /*call constructor function at the start */
ajStrAssC(&variable2, "AAA");
ajStrDel(&variable2); /*call destructor function once your're done*/

would do nicely.

Why not enrol on the emboss programming course
for next year:
http://www.hgmp.mrc.ac.uk/CCP11/CCP11courses/EMBOSS-Course/emboss_index.html

Cheers

J.

Carole Louis wrote:

> Hi,
>
> The thing I wanna do does not seem really hard but everything I do
> does not work.
> I just want put the string text 'AAA' in the string called variable2.
>
>
> I have tried :
> AjPStr   variable2 = 'AAA' ;
>
> or
>
> ajStrAssI (&variable2, 'AAA',3) ;
>
> Nothing is working.
>
> What can I do ?
>
> carole

--
Jon C. Ison, PhD
Bioinformatics Applications Group
UK MRC Human Genome Mapping Project Resource Centre
Hinxton, Cambridge, CB10 1SB, UK
E-mail : jison at hgmp.mrc.ac.uk
Tel    : 01223 49-4548
HGMP-RC: http://www.hgmp.mrc.ac.uk/
EMBOSS : http://www.hgmp.mrc.ac.uk/Software/EMBOSS/






More information about the EMBOSS mailing list