Moved some string support functions from p_w32pe.cpp to util.h.

committer: mfx <mfx> 976588093 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2000-12-12 02:28:13 +00:00
parent 546f561bd3
commit b3411ff0c6
2 changed files with 31 additions and 25 deletions
-20
View File
@@ -172,26 +172,6 @@ bool PackW32Pe::readFileHeader()
return true;
}
// FIXME: put these into util.h
// s/upx_byte/char/g would possibly be better
static inline char* strcpy(unsigned char *s1,const unsigned char *s2)
{
return strcpy((char*) s1,(const char*) s2);
}
static inline int strcasecmp(const unsigned char *s1,const unsigned char *s2)
{
return strcasecmp((const char*) s1,(const char*) s2);
}
static inline unsigned strlen(const unsigned char *s)
{
return strlen((const char*) s);
}
static inline int ptr_diff(const void *p1,const void *p2)
{
return (const char*) p1 - (const char*) p2;
}
/*************************************************************************
// interval handling