String copy idiom.

Daniel J. Salomon djsalomon at watdaisy.UUCP
Fri Mar 8 13:33:16 AEST 1985


The VAX 4.2 BSD UNIX library routine 'strcpy' uses code equivalent
to the less efficient sequence:  while (*s++ = *t++);
Perhaps it should be changed.
In the mean time, if your application does a great deal of
string copying, and you are want to minimize execution time,
you should write your own string copy routine.



More information about the Comp.lang.c mailing list