练习Markdown(一)

作业练习

Markdown基础练习

  • 标题

一级标题

二级标题

三级标题

四级标题

  • 表格
标题 内容
课程 名称
  • 修饰字体

    • 加粗
      • 加粗
    • 斜体
    • 斜体加粗
    • 删除线
    • 红色字体
  • 引用

引用

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];
}
posted @ 2019-02-27 17:59  He-z  阅读(87)  评论(0编辑  收藏  举报