title: sprintf an unsigned char array
body: <p>I need to read IP addresses into a char array for working on it later. Since IP octets can be as big as 256, I thought it would be good to use unsigned char array to read them. This is how I intend to use it.</p>
  
  <pre><code>sprintf(buf,"%d.%d.%d.%d",ip24,ip16,ip8,ip);
  </code></pre>
  
  <p>But it appears that first argument of sprintf should be char* and hence it's throwing the below warning. How do I deal with it.</p>
  
  <pre><code>expected ‘char * restrict’ but argument is of type ‘unsigned char *’
  </code></pre>