come controllo con sicurezza se l'array termina con '\0'?
trovo varie versioni

grazie