| 110 | //========================================================================== |
| 111 | |
| 112 | char *copystring (const char *s) |
| 113 | { |
| 114 | char *b; |
| 115 | if (s) |
| 116 | { |
| 117 | size_t len = strlen (s) + 1; |
| 118 | b = new char[len]; |
| 119 | memcpy (b, s, len); |
| 120 | } |
| 121 | else |
| 122 | { |
| 123 | b = new char[1]; |
| 124 | b[0] = '\0'; |
| 125 | } |
| 126 | return b; |
| 127 | } |
| 128 | |
| 129 | /* |
| 130 | ============================================================================= |
no outgoing calls
no test coverage detected