strcpy where source and destination may overlap
| 634 | |
| 635 | // strcpy where source and destination may overlap |
| 636 | static void mystrcpy(char* d, char* s) |
| 637 | { |
| 638 | /*assume(d != NULL && s != NULL);*/ |
| 639 | while (*s != '\0') |
| 640 | { |
| 641 | *d = *s; |
| 642 | d++; |
| 643 | s++; |
| 644 | } |
| 645 | *d = '\0'; |
| 646 | } |
| 647 | |
| 648 | /***************************************************************** |
| 649 | * |
no outgoing calls
no test coverage detected