title: How to detect a delimiter while reading from a socket file descriptor in C?
body: <p>In C, while reading into a buffer from a socket file descriptor, how do I make the read stop if a delimiter is detected? Let's assume the delimiter is a '>' character.</p>
  
  <pre><code>read(socket_filedes, buffer, MAXSZ);
  /* stop if delimiter '&gt;' is detected */
  </code></pre>