title: How to compare uint8_t array to a string in C?
body: <p>I have an input which comes over UART. </p>
  
  <pre><code>uint8_t uartRX_data[UART_RX_BUF_SIZE]="";
  </code></pre>
  
  <p>I need to pass this data to a function. And, in this function I want to compare it with predefined strings like: </p>
  
  <pre><code>char RESP_OK[]                  = "OK";
  char RESP_ERROR[]               = "ERROR";
  char RESP_FAIL[]                = "FAIL";
  </code></pre>
  
  <p>What is the easiest way to do that?</p>
  
  <p>EDIT: My problem is only about the data comparison and data passing to a function. </p>