home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d9xx / d958 / fed-case.lha / Fed-CASE / sources / function.c < prev    next >
C/C++ Source or Header  |  1993-12-04  |  6KB  |  121 lines

  1. /************************************************************************/
  2. /*                                                                      */
  3. /*         Code generated by FED-CASE V1.0  Code Generator              */
  4. /*                  © Joosen Software Development                       */
  5. /*                    All rights reserved 1993                          */
  6. /*                                                                      */
  7. /************************************************************************/
  8.  
  9. /************************************************************************/
  10. /*                                                                      */
  11. /*                          Start of Includes                           */
  12. /*                                                                      */
  13. /************************************************************************/
  14.  
  15. #include <exec/types.h>
  16. #include <data/const_function.h>
  17. #include <stdio.h>
  18.  
  19. /************************************************************************/
  20. /*                                                                      */
  21. /*                           End of Includes                            */
  22. /*                                                                      */
  23. /************************************************************************/
  24.  
  25. /************************************************************************/
  26. /*                                                                      */
  27. /*                    Start of source prototype file                    */
  28. /*                                                                      */
  29. /************************************************************************/
  30.  
  31. #include <proto/proto_function.h>
  32.  
  33. /************************************************************************/
  34. /*                                                                      */
  35. /*                     End of source prototype file                     */
  36. /*                                                                      */
  37. /************************************************************************/
  38.  
  39. /************************************************************************/
  40. /*                                                                      */
  41. /*                 Start of global variable declaration                 */
  42. /*                                                                      */
  43. /************************************************************************/
  44.  
  45. int GI_vertraging;
  46. int GI_test;
  47. long GL_test2;
  48. int GI5_5_arrayvar[5][5];
  49. int GI_ai;
  50.  
  51. /************************************************************************/
  52. /*                                                                      */
  53. /*                  End of global variable declaration                  */
  54. /*                                                                      */
  55. /************************************************************************/
  56.  
  57.  
  58. /************************************************************************/
  59. /* Procedure  : int *PI_func(FI5_5_arrayvar)                            */
  60. /* Function   :                                                         */
  61. /* Designer   : eerste                                                  */
  62. /* Date       : Sat Nov 27 13:43:05 1993                                */
  63. /*                                                                      */
  64. /* Modificat  :                                                         */
  65. /* Handler    :                                                         */
  66. /* Modific.   :                                                         */
  67. /*                                                                      */
  68. /************************************************************************/
  69.  
  70. int *PI_func(FI5_5_arrayvar)
  71. int FI5_5_arrayvar[5][5];
  72. {
  73.  
  74.     GI_vertraging= 3;
  75.  
  76.     return ( &GI_vertraging );
  77. }                                /* end of PI_func */
  78.  
  79. /************************************************************************/
  80. /* Procedure  : int *PI_func2(FPI_count)                                */
  81. /* Function   :                                                         */
  82. /* Designer   : eerste                                                  */
  83. /* Date       : Sat Nov 27 13:43:05 1993                                */
  84. /*                                                                      */
  85. /* Modificat  :                                                         */
  86. /* Handler    :                                                         */
  87. /* Modific.   :                                                         */
  88. /*                                                                      */
  89. /************************************************************************/
  90.  
  91. int *PI_func2(FPI_count)
  92. int *FPI_count;
  93. {
  94.  
  95.     *FPI_count+= 3;
  96.  
  97.     return ( FPI_count );
  98. }                                /* end of PI_func2 */
  99.  
  100. /************************************************************************/
  101. /* Procedure  : void main()                                             */
  102. /* Function   :                                                         */
  103. /* Designer   : eerste                                                  */
  104. /* Date       : Sat Nov 27 13:43:05 1993                                */
  105. /*                                                                      */
  106. /* Modificat  :                                                         */
  107. /* Handler    :                                                         */
  108. /* Modific.   :                                                         */
  109. /*                                                                      */
  110. /************************************************************************/
  111.  
  112. void main()
  113. {
  114.  
  115.     GI_test= (int)GL_test2;
  116.     GI5_5_arrayvar[ GI_ai ][ GI_ai ]= 13;
  117.     PI_func( GI5_5_arrayvar );
  118.     PI_func2( &GI5_5_arrayvar [ 1 ][ 2 ] ) ;
  119.     printf( "%d\n" , GI5_5_arrayvar [ 1 ][ 2 ] );        /* printf: Standard output function */
  120. }                                /* end of V_main */
  121.