ec_bag_put

March 26, 2020 Contributors

Name

ec_bag_put — Put something in the specified bag

Synopsis

#include "ec_boh.h"

| int **ec_bag_put** ( | bag, |   |
|   | typedname, |   |
|   | thing); |   |

ec_bag * <var class="pdparam">bag</var>;
const char * <var class="pdparam">typedname</var>;
void * <var class="pdparam">thing</var>;

Description

Put something in the bag.

Parameters

bag

The ec_bag.

typedname

The name of the data type that we are placing in the bag. For an explanation of this seemingly redundant parameter see ec_bag_find.

thing

The item being placed in the bag.

Return Value

On success, this function returns 1.

Threading

It is legal to call this function in any thread.

See Also

ec_bag_create