title: How can I slice a string in C?
body: <p>I need to find if a char array starts with "ADD". I know to use strcmp(), but I don't know how to get the first three characters. I really hate working with c-strings. How can I take a slice of a char array like <code>char buffer[1024]?</code></p>