home *** CD-ROM | disk | FTP | other *** search
- #ifndef _UTILS_H
- #define _UTILS_H
-
- void UTIL_CopyThis(char far *source,char far * dest)
- {int i,iLen=strlen(source);
-
- for(i=0;i<iLen;i++)
- {
- *(dest+i)=*(source+i);
- }
- *(dest+i)=0; //slice the tip off...
- }
-
- LPSTR UTIL_StrCombine(LPSTR first,LPSTR second)
- {LPSTR pString;
- int i,sFirst=strlen(first),sSecond=strlen(second);
- pString=new char[sFirst+sSecond];
-
-
- for(i=0;i<sFirst;i++)
- pString[i]=first[i];
-
- for(i=0;i<sSecond;i++)
- pString[i+sFirst]=second[i];
-
- pString[i+sFirst]='\0';
-
- return pString;
- }
-
- #endif