📄 xstrdup.c
字号:
/* (C) 2002 by Matthias Andree, redistributable according to the terms * of the GNU General Public License, v2. * * $Id: xstrdup.c,v 1.4 2004/02/25 04:51:58 relson Exp $ * */#include <string.h>#include "xmalloc.h"#include "xstrdup.h"char *xstrdup(const char *s) { size_t l = strlen(s) + 1; char *t = xmalloc(l); memcpy(t, s, l); return t;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -