INT RTrim(PCHAR Path,INT PathLen)
{
int Index = PathLen-1;
while (Index>-1)
{
if (Path[Index] == ' ')
{
Path[Index] = '\0';
}
else
{
break;
}
Index--;
}
return strlen(Path);
{
int Index = PathLen-1;
while (Index>-1)
{
if (Path[Index] == ' ')
{
Path[Index] = '\0';
}
else
{
break;
}
Index--;
}
return strlen(Path);
}
int MyStrstr(const char *str1,int len, const char *str2)
{
int i =0,n = 0;

这篇博客介绍了两个C语言函数,用于字符串处理。`MyStrstr`函数实现了在一个字符串中查找子串的功能,而`FindLastBackslashPosInPath`函数则用于在路径字符串中找到最后一个反斜杠的位置。
最低0.47元/天 解锁文章
891

被折叠的 条评论
为什么被折叠?



