home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 1 / FishNMoreVol1.bin / more / code_examples / librar / intinit.c < prev    next >
Text File  |  1989-02-08  |  512b  |  18 lines

  1. /*--------------------------------------*/
  2. /*                    */
  3. /*             INTINIT(X,X,X)        */
  4. /*                    */
  5. /* Initializes an integer array given in*/
  6. /* the first argument with the number    */
  7. /* given in the third argument.  The    */
  8. /* second argument is the size of the    */
  9. /* array.                */
  10. /*                    */
  11. /*--------------------------------------*/
  12. void intinit(r,b,c)
  13. int r[],b,c;
  14. {
  15.     int j;
  16.     for (j=0;j<b;j++)
  17.              r[j]=c;
  18. }