Implemented StrRChrA.

This commit is contained in:
Ulrich Czekalla 1999-10-23 16:50:58 +00:00 committed by Alexandre Julliard
parent 3723c2c8e9
commit c8a3f7acb2
2 changed files with 23 additions and 1 deletions

View File

@ -1227,6 +1227,28 @@ HRESULT WINAPI SHFlushClipboard(void)
{ FIXME("stub\n"); { FIXME("stub\n");
return 1; return 1;
} }
/*************************************************************************
* StrRChrA [SHELL32.346]
*
*/
LPSTR WINAPI StrRChrA(LPCSTR lpStart, LPCSTR lpEnd, DWORD wMatch)
{
if (!lpStart)
return NULL;
/* if the end not given, search*/
if (!lpEnd)
{ lpEnd=lpStart;
while (*lpEnd)
lpEnd++;
}
for (--lpEnd;lpStart <= lpEnd; lpEnd--)
if (*lpEnd==(char)wMatch)
return (LPSTR)lpEnd;
return NULL;
}
/************************************************************************* /*************************************************************************
* StrRChrW [SHELL32.320] * StrRChrW [SHELL32.320]
* *

View File

@ -346,7 +346,7 @@ type win32
343 stub StrNCatW 343 stub StrNCatW
344 stub StrPBrkA 344 stub StrPBrkA
345 stub StrPBrkW 345 stub StrPBrkW
346 stub StrRChrA 346 stdcall StrRChrA (str str long) StrRChrA
347 stub StrRChrIA 347 stub StrRChrIA
348 stub StrRChrIW 348 stub StrRChrIW
349 stdcall StrRChrW (wstr wstr long) StrRChrW 349 stdcall StrRChrW (wstr wstr long) StrRChrW