0.00 avg. rating (0% score) - 0 votes
const char *ibv_node_type_str(enum ibv_node_type node_type); |
const char *ibv_node_type_str(enum ibv_node_type node_type);
Description
ibv_node_type_str() returns a string that describes a node type enumerated value.
Parameters
Name |
Direction |
Description |
node_type |
in |
The node type that its string description is requested |
Return Values
Value |
Description |
On success |
A string that describes the node type |
On error |
The string "unknown". If node_type isn't a valid node type value |
Examples
Print a description of a node type enumerated value:
const char *descr;
descr = ibv_node_type_str(IBV_NODE_CA);
printf("The description of the enumerated value %d is %s\n", IBV_NODE_CA,
descr); |
const char *descr;
descr = ibv_node_type_str(IBV_NODE_CA);
printf("The description of the enumerated value %d is %s\n", IBV_NODE_CA,
descr);
Written by: Dotan Barak on April 21, 2013.on January 31, 2014.
Share Our Posts
Share this post through social bookmarks.
Add a Comment
This comment will be moderated; answer may be provided within 14 days.
Comments
Tell us what do you think.
There are no comments on this entry.