Try to empty char array.

But every time I reset I want another name with a higher number.

If you really mean "reset" then you have to store a variable in non-volatile memory, the EEPROM for example.


Rob