avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [avr-gcc-list] zero byte in c


From: Sander Pool
Subject: RE: [avr-gcc-list] zero byte in c
Date: Tue, 27 May 2003 21:31:05 -0700

You don't have to, there's a 0 at the end of every string constant. If you
want to add one anyway you can write \0.

  Sander

> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden Behalf Of Ryder Saint
> Sent: Tuesday, May 27, 2003 9:21 PM
> To: avr-gcc-list
> Subject: [avr-gcc-list] zero byte in c
>
>
> Dear List
>
> how can i write this so a zero byte is attached to the end of it
>
> prog_char banner_P[] = "<MESSAGE>Hello World</MESSAGE>";
>
> someone suggested that I add ( chr$(0) ) to the end of the line but i
> have no idea what he meant
> sorry i am a real newbie to c
>
> Your Sincerely
>
> Ryder Saint
>
> Watanabe Giichi Seisakusho
> Kyoto, Japan
>
>
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden
> http://www.avr1.org/mailman/listinfo/avr-gcc-list
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]