PIC look-up table

Hii,

i'm trying to make a look-up table for my programs. I wanna make a small application with a few buttons so I can chose my different program with their related button.
Now, i don't really know how i can start to make my look-up table, and how i put my programs into it.

Thanks!!

Both my boards are refusing to upload at the moment so I can't test, but this should be close

void func_1 (void) {
   Serial.println ("func_1"); 
}

void func_2 (void) {
   Serial.println ("func_2"); 
}

void func_3 (void) {
   Serial.println ("func_3"); 
}

void (*funcs [])(void) = {
 func_1,
 func_2,
 func_3
};

void setup () {
 Serial.begin (115200); 
}

void loop () {
  int i;
  
   i = 0;

  funcs[i++]();
  funcs[i++]();
  funcs[i]();
  
}

Rob

Why does the title include the abbreviation "PIC"?

(PIC lookups usually use the RETLW instruction)

because i wanna use the look up table in my pic code...

So why not ask on a PIC forum?

sp. "want to".