⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 slog_irec_frominputstream.3

📁 MPICH是MPI的重要研究,提供了一系列的接口函数,为并行计算的实现提供了编程环境.
💻 3
字号:
.TH SLOG_Irec_FromInputStream 3 "4/24/2000" " " "SLOG_API".SH NAMESLOG_Irec_FromInputStream \-  Return a pointer to the next interval  record in the given SLOG_STREAM. The interval record returned can be real or pseudo record. .SH SYNOPSIS.nfconst SLOG_intvlrec_t *SLOG_Irec_FromInputStream( SLOG_STREAM *slog, int *irc ).fi.SH MODIFIED INPUT VARIABLES .PD 0.TP.B slog - pointer to the SLOG_STREAM where interval record is retrieved..PD 1.PD 0.TP.B irc  - pointer to the returned integer status code..PD 1.SH MODIFIED OUTPUT VARIABLES .PD 0.TP.B returned value - pointer to the next interval record of type SLOG_intvlrec_t in the frame buffer.  The "const" qualifier indicates that user should NOT modify thecontent.  The pointer is NULL when the routine encounters error or end of file..PD 1.SH USAGE NOTES ON THIS SUBROUTINE The routine returns a pointer to the interval record of the variousBbuf in current frame buffer in the SLOG_STREAM given.  Theroutine does NOT create new node/irec.  It just simply returns a pointerto the existing one in the bi-directional linked list( an internal datastructure ).  If one wants to modify the content of the interval recordwithout modification of the specified bi-directional linked node, oneshould use SLOG_Irec_Copy() to copy the returned record content to a newrecord.  The routine also ADVANCES the internal pointer of the specifiedlinked list buffer.  Also, the routine does NOT gurantee the memoryassociated with previously _returned_ interval record be retained in thenext call of the routine.  So if one wants to keep interval record forfuture reference, one need to use SLOG_Irec_Copy() to copythe content of the interval record to another memory location __BEFORE__calling SLOG_Irec_FromInputStream() again.  The example program,slog_readtest.c shows the typical way of using this subroutine..SH INCLUDE FILE NEEDED slog.h.SH NOTES ON SLOG RETURN STATUS CODE There are 5 allowed SLOG returned status codes.  They includeSLOG_SUCCESS, SLOG_FAIL and SLOG_EOF.  Their actual valuesare defined in slog.hSLOG_SUCCESS is returned when no error is encountered.SLOG_FAIL is returned when error is encounted.SLOG_EOF is returned when End of file is encounted.There are also SLOG_TRUE and SLOG_FALSE which are sued as booleanvalues, in particular they are used in boolean functions whichare usually named as IsXXXXX(), AreXXXXX() and HasXXXXX()..br.SH LOCATION../src/slog_irec_read.c

⌨️ 快捷键说明

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