Perl msgsnd Function

Advertisements


Description

This function sends the message MSG to the message queue ID, using the optional FLAGS.

Syntax

Following is the simple syntax for this function:

msgsnd ID, MSG, FLAGS

Return Value

This function returns 0 on error and 1 on success.

Example

Following is the example code showing its basic usage:


When above code is executed, it produced following result




Advertisements
Advertisements