bnr_info_create.cpp

来自「MPICH是MPI的重要研究,提供了一系列的接口函数,为并行计算的实现提供了编程」· C++ 代码 · 共 15 行

CPP
15
字号
#include "bnr_internal.h"MPICH_BNR_API int BNR_Info_create(BNR_Info *info){    *info	    = new BNR_Info_struct;//(BNR_Info) MALLOC(sizeof(struct MPIR_Info));    (*info)->cookie = BNR_INFO_COOKIE;    (*info)->key    = 0;    (*info)->value  = 0;    (*info)->next   = 0;    /* this is the first structure in this linked list. it is        always kept empty. new (key,value) pairs are added after it. */    return BNR_SUCCESS;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?