Well one of two things is happening here:
1) Your function is declared inside of another function.
2) The code following the function is not part of any function and therefore will never be called; with the exception of creating your character array as a global variable.
Both of these could definitely cause some problems however I don't know which line specifically is throwing that error.
1) Your function is declared inside of another function.
2) The code following the function is not part of any function and therefore will never be called; with the exception of creating your character array as a global variable.
Both of these could definitely cause some problems however I don't know which line specifically is throwing that error.