Removed non-exported string functions.
This commit is contained in:
parent
3027b2b7b6
commit
5f7162363c
|
@ -46,18 +46,6 @@ char* msvcrt_strndup(const char* buf, unsigned int size)
|
|||
return ret;
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* _strdec (MSVCRT.@)
|
||||
*/
|
||||
char* _strdec(const char* str1, const char* str2)
|
||||
{
|
||||
/* Hmm. While the docs suggest that the following should work... */
|
||||
/* return (str2<=str1?0:str2-1); */
|
||||
/* ...Version 2.50.4170 (NT) from win98 constantly decrements! */
|
||||
str1 = str1; /* remove warning */
|
||||
return (char *)str2-1;
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* _mbsdup (MSVCRT.@)
|
||||
* _strdup (MSVCRT.@)
|
||||
|
@ -69,32 +57,6 @@ char* _strdup(const char* str)
|
|||
return ret;
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* _strinc (MSVCRT.@)
|
||||
*/
|
||||
char* _strinc(const char* str)
|
||||
{
|
||||
return (char*)str+1;
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* _strnextc (MSVCRT.@)
|
||||
*/
|
||||
unsigned int _strnextc(const char* str)
|
||||
{
|
||||
return (unsigned int)*str;
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* _strninc (MSVCRT.@)
|
||||
*
|
||||
* Return a pointer to the 'n'th character in a string
|
||||
*/
|
||||
char* _strninc(char* str, unsigned int n)
|
||||
{
|
||||
return str + n;
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* _strnset (MSVCRT.@)
|
||||
*/
|
||||
|
@ -137,24 +99,6 @@ char* _strset(char* str, int value)
|
|||
return str;
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* _strncnt (MSVCRT.@)
|
||||
*/
|
||||
unsigned int _strncnt(char* str, unsigned int max)
|
||||
{
|
||||
unsigned int len = strlen(str);
|
||||
return (len > max? max : len);
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* _strspnp (MSVCRT.@)
|
||||
*/
|
||||
char* _strspnp(char* str1, char* str2)
|
||||
{
|
||||
str1 += strspn(str1,str2);
|
||||
return *str1? str1 : 0;
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* _swab (MSVCRT.@)
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue