this has been giving me fits... i have been searching on c board all morning and found lots of things to try, but cant get this fixed...
All i want to do is be able to get an individual character from the text_send array.Code:char text_send[] = ">>>This is line 1<<<"; char text_single[] = text_send[1];
This is the error i get:
test635.c: In function ‘int main(int, char**)’:
test635.c:66: error: initializer fails to determine size of ‘text_single’
test635.c:66: error: invalid initializer
To try to get around this I tried:
Then I just get this error:Code:char text_send[] = ">>>This is line 1<<<"; char text_single[1] = text_send[1];
test635.c: In function ‘int main(int, char**)’:
test635.c:68: error: invalid initializer
I know that text_send is getting filled because I cant print that string out. But I cant seem to get a single character from it.