Laser transmitter transmitts the whole alphabet instead of a single character

Yes use the strcmp function to compare strings. If you want to use single characters you still have to use the equality operator == not the assignment operator =