I have the following code:
void palette(char* in, int* out, int* palette, int n) { for(int i = 0; i < n ; ++i) { int value = palette[in[i]]