You need to be using %s instead of %c and declare the variable as character array.