How to import subscribe message into C program?

Thanks SynAckFin and Steve. I will try these methods and report back with the final solution. I like the idea of doing it within node-red and not using a C program to control the LED.