#include <stdlib.h>
#include <stdio.h>

//Textarrays (wie z.B argv von main)
char *deutsch[] = { "Hallo", "Welt", "!", NULL};
char *english[] = { "Hello", "World!", NULL};

void textout(char **ppc)  // Doppelzeiger
{ while (*ppc != NULL)
  { printf("1.Zeichen: %c. Text: %s\n", *ppc[0], *ppc);
    ++ppc;
  }
}

void settext(char ***pppc, int i)
// einen Doppelzeiger aus einer Funktion heraus ändern
// das würde man anders lösen, ist ja nur ein Beispiel
{ 
  if (i == 0) 
    *pppc = deutsch;
  if (i == 1) 
    *pppc = english;
}


int main (int argc, char ** argv)
{
  char **ppc;

  ppc = deutsch;
  textout(ppc);

  settext(&ppc,1);
  textout(ppc);

  return 0;
}
