[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] Pre-initlized strings only holding two characters
From: |
Colin O'Flynn |
Subject: |
[avr-gcc-list] Pre-initlized strings only holding two characters |
Date: |
Sat, 15 Mar 2003 16:03:47 -0800 (PST) |
Hello,
I'm using the latest WinAVR release (March) and had a
question.
I have a routine that prints a string to a VFD. If I
do this:
char test[10] = "Atmel";
The VFD display only shows At
However if I do this:
char test[10];
test[0] = 'A';
test[1] = 't';
test[2] = 'm';
test[3] = 'e';
test[4] = 'l';
test[5] = '\0';
It works fine and prints Atmel
Any advice?
-Colin
- [avr-gcc-list] Pre-initlized strings only holding two characters,
Colin O'Flynn <=