title: separating one command from an array of commands with delimiter #
body: <p>I am writing a TCP client application in c programming language, the project is a client server communication. I am  successfully communicating with the server, and the server is sending commands to me like a string, that I am saving that string in array of charts,and performing, but the problem is that sometimes the server is sending more then one command (max 3 commands) in this format
  [100#100#100#] 100 is the command, and # is a sign so I know where the first command ends. 
  So the problem is now how to divide all the commands in a separate char array? Any ides</p>
  
  <p>P.S the problem why is this happening is because the client is written in c, and the server is written in java programming language, and the client should not be waiting for a ack from the server. </p>