练习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];
}

猜你喜欢

转载自www.cnblogs.com/hz1998/p/10445286.html
今日推荐