Given that the allocated flag is just one character, allocated = %c and 'T' or 'F' (char constants) would be more apt (and marginally more efficient) than that second %s.