its part of a struct

Code:
 struct sale
  {
    int week  ;
    char name[30] ;
    int units ;
    int price ;
    int total ;
  } ;
basically, I want to limit it to 30 characters, ive tried using %30s in the past, however it limited it to 30 but also required 30 characters to be entered, which obviouslly isnt helpful :P


as for the comma, its there in the program, must have deleted it while I was copying it accross program compiles and the response I get is

The largest single sale was in week 0, when 514 units of Ú· were sold at 3.25 per unit.