in mystrtok function why the variable is made static?
Use of static variable
Because only one copy of it has to be maintained and it will carry forward the previous value. It will not be reinitialized.
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.