> char name[] = "badfile?"; > name[7] = (char) 255; Or char name[] = "badfile\377"; which is slightly more convenient. I sincerely *hope* your compiler can cope with that (although it's not inconceivable that the compiler writer dropped the ball)....