To insert the appropriate #include directive for any documented QNX Neutrino function:
-
In the C/C++ editor, double-click the function name, but don't highlight the parentheses, or any leading tabs or spaces.
-
Right-click and select .
The IDE automatically adds the #include statement to the top of the file, if it isn't already there.
The IDE can infer the header file of a function or class from its use, and then automatically insert the appropriate #include directive. For example, if you create a file with a main method and a call to printf, you can right-click on the call to printf and select . The IDE infers that printf is defined in the stdio.h header and it automatically inserts the #include directive for that header.