📄 palloc.c
字号:
/*------------------------------------------------------------------------- * * palloc.c * POSTGRES memory allocator code. * * Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATION * $Header: /usr/local/cvsroot/pgsql/src/backend/utils/mmgr/palloc.c,v 1.12.2.1 1999/08/02 05:25:16 scrappy Exp $ * *------------------------------------------------------------------------- */#include "postgres.h"#include "nodes/memnodes.h"/* ---------------------------------------------------------------- * User library functions * ---------------------------------------------------------------- *//* ---------- * palloc(), pfree() and repalloc() are now macros in palloc.h * ---------- */char *pstrdup(char *string){ char *nstr; int len; nstr = palloc(len = strlen(string) + 1); MemoryCopy(nstr, string, len); return nstr;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -