home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2001 December
/
PCWorld_2001-12_cd.bin
/
Software
/
Topware
/
Hackman
/
_SETUP.1
/
Utils.h
< prev
next >
Wrap
C/C++ Source or Header
|
2000-06-30
|
547b
|
31 lines
#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