Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libcdi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpim-sw
libcdi
Commits
b1c82f63
Commit
b1c82f63
authored
5 years ago
by
Uwe Schulzweida
Browse files
Options
Downloads
Patches
Plain Diff
Docu update.
parent
1c9b7eb9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!7
Replaced gridDefDatatype()/gridInqDatatype() by cdiDefKeyInt()/cdiInqKeyInt()...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cdi_key.c
+39
-2
39 additions, 2 deletions
src/cdi_key.c
with
39 additions
and
2 deletions
src/cdi_key.c
+
39
−
2
View file @
b1c82f63
...
...
@@ -311,7 +311,25 @@ int cdiInqKeyBytes(int cdiID, int varID, int key, unsigned char *bytes, int *len
return
status
;
}
// cdiDefKeyString: Define a string value from a key of a CDI variable
/*
@Function cdiDefKeyString
@Title Define a CDI grid string value from a key
@Prototype int cdiDefKeyString(int cdiID, int varID, int key, const char *string)
@Parameter
@Item cdiID CDI ID, from a previous call to @fref{vlistCreate} or @fref{gridCreate}.
@Item varID Variable identifier or CDI_GLOBAL.
@Item key The key to be searched.
@Item string The address of a string where the data will be read.
@Description
The function @func{cdiDefKeyString} defines a CDI string value from a key.
@Result
@func{cdiDefKeyString} returns CDI_NOERR if OK.
@EndFunction
*/
int
cdiDefKeyString
(
int
cdiID
,
int
varID
,
int
key
,
const
char
*
string
)
{
xassert
(
string
!=
NULL
);
...
...
@@ -322,7 +340,26 @@ int cdiDefKeyString(int cdiID, int varID, int key, const char *string)
return
status
;
}
// cdiInqKeyString: Get a string value from a key of a CDI variable
/*
@Function cdiInqKeyString
@Title Get a CDI grid string value from a key
@Prototype int cdiInqKeyString(int cdiID, int varID, int key, char *string, int *length)
@Parameter
@Item cdiID CDI ID, from a previous call to @fref{vlistCreate} or @fref{gridCreate}.
@Item varID Variable identifier or CDI_GLOBAL.
@Item key The key to be searched.
@Item string The address of a string where the data will be retrieved.
The caller must allocate space for the returned string.
@Item length The allocated length of the string on input.
@Description
The function @func{cdiInqKeyString} return a CDI grid string value from a key.
@Result
@func{cdiInqKeyString} returns CDI_NOERR if key is available.
@EndFunction
*/
int
cdiInqKeyString
(
int
cdiID
,
int
varID
,
int
key
,
char
*
string
,
int
*
length
)
{
xassert
(
string
!=
NULL
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment