Programming Guide



sm_receive

Executes a JPL receive command

int sm_receive(char *receive_args);

receive_args
A string constant that contains receive command arguments, using one of the following formats:
[ bundle bundleName] [ item itemNo] [ keep] data fieldExpr
{ ARGUMENTS | MESSAGE } ( [receiveArg] )

Refer to the receive command for a description of these arguments.


Returns

Description

sm_receive reads data from a bundle that was written by an earlier call to sm_send or the JPL send command—typically, from another screen. sm_receive reads the data into its field-expr arguments in the same order that it was sent. Unless you supply the keep argument, the bundle data is discarded after sm_receive completes execution.

For more information, refer to the JPL receive command.

See Also

sm_send