?
=?ISO-8859-1?Q?Andreas_M=FCller?=
hi @all,
I have a char* string[10] array and i want to fill it up in a while
loop:
while(i<3){
length = read(STDIN_FILENO, inputBuffer, sizeof(inputBuffer);
...
}
after this the array should look like this:
string[0]=the first entry
string[1]=the 2nd entry
string[2]=the third entry
string=inputBuffer works for the 1st entry but not for the 2nd,
is this because of the null-terminated strings?
Can anybody help me?
thanks
Andreas
I have a char* string[10] array and i want to fill it up in a while
loop:
while(i<3){
length = read(STDIN_FILENO, inputBuffer, sizeof(inputBuffer);
...
}
after this the array should look like this:
string[0]=the first entry
string[1]=the 2nd entry
string[2]=the third entry
string=inputBuffer works for the 1st entry but not for the 2nd,
is this because of the null-terminated strings?
Can anybody help me?
thanks
Andreas