| 3133 | // space and can't just be local variables in a function reading them in. |
| 3134 | |
| 3135 | char *SzClone(char *szSrc) |
| 3136 | { |
| 3137 | char *szNew; |
| 3138 | int cb; |
| 3139 | |
| 3140 | // Make a copy of the string and use it. |
| 3141 | cb = CchSz(szSrc)+1; |
| 3142 | szNew = (char *)PAllocate(cb, "string"); |
| 3143 | if (szNew != NULL) { |
| 3144 | CopyRgb((pbyte)szSrc, (pbyte)szNew, cb); |
| 3145 | is.cAlloc--; |
| 3146 | is.cAllocTotal--; |
| 3147 | is.cbAllocSize -= cb; |
| 3148 | } |
| 3149 | return szNew; |
| 3150 | } |
| 3151 | |
| 3152 | |
| 3153 | // This is Astrolog's memory allocation routine, returning a pointer given |
no test coverage detected