<p>I want to take the value stored in a 32 bit unsigned int, put it into four chars and then store the integer value of each of these chars in a string.</p>

<p>I think the first part goes like this:</p>

<pre><code>char a = orig &lt;&lt; 8;
char b = orig &lt;&lt; 8;
char c = orig &lt;&lt; 8;
char d = orig &lt;&lt; 8;
</code></pre>

Not quite:
```
```
char a = orig & 0xff;
orig >>= 8;
char b = orig & 0xff;
orig >>= 8;
char c = orig & 0xff;
orig >>= 8;
char d = orig & 0xff;
```
```
Not exactly sure what you mean by "store the integer values of each of these values into a string.  Do you want turn
```
0x10111213
```
into
```
"16 17 18 19"
```
, or what?