Use of static variable

in mystrtok function why the variable is made static?

Because only one copy of it has to be maintained and it will carry forward the previous value. It will not be reinitialized.