------- Comment #1 from pinskia at gcc dot gnu dot org  2008-09-17 01:00 -------
The field width is not taken into account if there is more than that width. 
You also need to specify the precision.
  printf("\n  the 4 leftmost characters of xyz are: \"%.4s\"\n\n",xyz);

Will work.  Note the "." there.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37548

Reply via email to