What's the purpose of using static keyword?

char mystrtok(char *str ,char delim)
{
static char *input=NULL;

And why have we used a ( * )star symbol in both the places?