![]() |
|||
![]() |
![]() ![]() |
![]() |
![]() ![]() |
![]() |
![]() ![]() |
![]() |
| |||
The code fragment in Example 4-1 is accompanied by a common.h header file. The code in the common.h header file is used in many of the code samples in this guide and is shown in Example 4-2. Example 4-2 The common.h Header File
For instructions on installing header files, see Installing Libraries and Header Files. To check that your development host and cluster are running correctly and that you are able to compile and run code using the CMM API, an example, test_master.c, is provided. This example uses:
This worked example is shown in Example 4-3. Example 4-3 Example test_master.c Program
An example Makefile is also provided in this section. This example Makefile enables you to run the test_master.c code in Example 4-3, using:
Example 4-4 Makefile for the test_master.c Program
For more information on setting up a Makefile, see Setting up a Makefile. The Foundation Services is supplied with source code examples in the SUNWnhcmd developer package. These examples are installed in subdirectories of the /opt/SUNWcgha/examples/ directory. For more information, see CMM API Code Examples. | |||
| |||
![]() |