home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2000 December
/
PCWorld_2000-12_cd.bin
/
Software
/
Vyzkuste
/
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