1 /* PR tree-optimization/34371 */ 2 /* Testcase by Martin Michlmayr <tbm@cyrius.com> */ 3 centerln(int width,int ch,char * s)4void centerln (int width, int ch, char *s) 5 { 6 unsigned int sidebar; 7 int i; 8 char linet1[1000]; 9 char linet2[100]; 10 sidebar = (width - __builtin_strlen (s)) / 2; 11 for (i = 0; i < sidebar; i++) 12 linet2[i] = ch; 13 __builtin_strcpy (linet1, linet2); 14 } 15