Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > C Code > Generating C Code > Overview of generating C code (C code) > Overview of modeling C code (C code) > Setting up parameters for generating C code (C code)
  
Setting up parameters for generating C code (C code)
In addition to the standard Parameter properties in Modeler, you can apply the «C Parameter» stereotype to a Parameter, and then use its Tag Definitions to define C specific information.
1. If you have not done so already, add the C Profile package to your Model. How?
2. Set the standard properties of the Parameter as required.
3. Apply the «C Parameter» stereotype to the Parameter.
For information about applying Stereotypes to an item, click here
4. Open the Parameter's Property Pages, and then click the C Parameter tab.
For information about setting the tagged value of a Tag Definition, click here
5. If you want to specify array text for the Parameter, type the text as the tagged value of the C Array Spec tag definition.
6. If you want to specify a CV qualifier for the Parameter, set the tagged value of the C CV Qualifier tag definition as required.
7. If you want to specify indirection text for the Parameter, such as * or *const, type the text as the tagged value of the C Indirection tag definition.
8. .If you want to specify that the Parameter is of type 'pointer to function', specify the function pointer return as the tagged value of the C Function Pointer Return tag definition and specify the function pointer parameters as the tagged value of the C Function Pointer Parameters tag definition. The tag definitions are generated as follows for the Parameter: <C Function Pointer Return>(<C Indirection><derived C Name>)(<C Function Pointer Parameters>);
9. If you want to specify a storage class keyword for the Parameter, set the tagged value of the C Storage Classtag definition to auto, register or extern.
10. If you want the Parameter to be generated with no name, set the tagged value of the C Anonymous Item tag definition to TRUE.