Hello,
the following code works well. Inadvertently I wrote '&' instead of '&&'. The results where still the same. Why did it still work?
Thank you for your help.Code:char array1[CONST2]; char input_buffer[CONST2]; unsigned short int counter1 = 0; ... for ( i = 0 ; (i < CONST2) && (input_buffer[i] != '\n') ; i++ ) { array1[counter1] = input_buffer[i]; counter1++; } ...