第一次写博客

字体:

大标题

大标题

小标题

一级标题

一级标题

二级标题

三级标题

四级标题

超链接:
百度一下

引用:
本文引用自Markdown排版介绍

字体设置:
字体 加粗
字体 对自身划线
字体 润色(红色)

加入代码:

/*
** Create or reuse a zero-terminated string, first checking in the
** cache (using the string address as a key). The cache can contain
** only zero-terminated strings, so it is safe to use 'strcmp' to
** check hits.
*/
    TString *luaS_new (lua_State *L, const char *str) {
    unsigned int i = point2uint(str) % STRCACHE_N;  /* hash */
    int j;
    TString **p = G(L)->strcache[i];
    for (j = 0; j < STRCACHE_M; j++) {
    if (strcmp(str, getstr(p[j])) == 0)  /* hit? */
       return p[j];  /* that is it */
    }
    /* normal route */
    for (j = STRCACHE_M - 1; j > 0; j--)
        p[j] = p[j - 1];  /* move out last element */
    /*new element is first in the list */
    p[0] = luaS_newlstr(L, str, strlen(str));
        return p[0];
    }

 本文引用自[Markdown排版介绍](http://www.cnblogs.com/math/p/se-tools-001.html)
 非本人原创,我仅仅是练习使用Markdown排版。

posted on 2017-03-22 18:38  动感光波哔哔哔~  阅读(149)  评论(0编辑  收藏  举报