1 extern void abort (void); 2 extern int inside_main; 3 4 __attribute__ ((__noinline__)) 5 char * strcpy(char * d,const char * s)6strcpy (char *d, const char *s) 7 { 8 char *r = d; 9 #if defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__ 10 if (inside_main) 11 abort (); 12 #endif 13 while ((*d++ = *s++)); 14 return r; 15 } 16