⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stubs.inl

📁 计算机代数系统
💻 INL
字号:

#include <E32STD.H>

inline LispInt PlatStrLen(const LispCharPtr aString)
{
    LispInt nr=0;
    while ((*aString) != '\0')
    {
        aString++;                 
        nr++;
    }
    return nr;
}

inline LispInt StrEqual(LispCharPtr ptr1, LispCharPtr ptr2)
{
//    return !strcmp(ptr1,ptr2);
    while (*ptr1 != 0 && *ptr2 != 0)
    {
        if (*ptr1++ != *ptr2++)
            return 0;
    }
    if (*ptr1 != *ptr2)
        return 0;
    return 1;
}

inline void PlatMemCopy(LispCharPtr aTarget, LispCharPtr aSource, LispInt aNrBytes)
{
  Mem::Copy(aTarget, aSource, aNrBytes);
}

inline void PlatMemMove(LispCharPtr aTarget, LispCharPtr aSource, LispInt aNrBytes)
{
    Mem::Copy(aTarget, aSource, aNrBytes);
}

inline void PlatMemSet(LispCharPtr aTarget, LispChar aByte, LispInt aNrBytes)
{
  Mem::Fill(aTarget,aNrBytes,aByte);
}

#define StrCompare(s1,s2) strcmp((char*)s1,(char*)s2)


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -