Using Dataport Functions : Using Functions in C Language Programs : Include Files

Include Files

Every program that calls Dataport functions must include the definitions for its library data-types and constants. The definitions are contained in the dataport.h file.

To incorporate these definitions, include the file by writing the following statement at the beginning of your program:

#include dir_name/include/dataport.h

Substitute the value of the environment variable STM_ROOT for the dir_name variable.