title: Check for particular characters in array in C
body: <p>I would like to check for certain characters in an array at certain positions.</p>
  
  <p>The array starts with $$$$ then has eight characters then another $, eight more characters and finishes with $$$$. For example <code>char my_array[50] = "$$$$01FF4C68$02543EFE$$$$";</code></p>
  
  <p>I want to check that all the positions where there are supposed to be $ do have them. </p>
  
  <p>I could split the array into the three parts that contain the characters and then test for them separately but is there a better way of doing this?</p>