我要评分
获取效率
正确性
完整性
易理解

Writing in All-Variable Mode

Function Syntax

Write data of the char type in all-variable mode.

int ncmpi_put_var_text(int fileId, int varId, const char *buf)

Parameters

Parameter

Description

Value Range

Input/Output

fileId

File ID

Non-negative integer

Input

varId

Variable ID

Non-negative integer

Input

*buf

Pointer to the data to write

Non-empty

Input

Return Value

  • Success: NC_NOERR
  • Failure: An error code is returned.

Error Code

Error Code

Description

NC_EBADID

Invalid ncid

NC_ENOTINDEP

Independent I/O operation attempted in collective mode

NC_EINVALCOORDS

Specified index exceeding the rank range of the specified variable

NC_ENOTVAR

Invalid variable ID