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

  1. /*--------------------------------------*/
  2. /*                    */
  3. /*            LONGINIT(X,X,X)        */
  4. /*                    */
  5. /* Initializes a long integer array. The*/
  6. /* first argument is the array. The     */
  7. /* second is the size of the array. The */
  8. /* third argument is the character used */
  9. /* for initialization.            */
  10. /*                    */
  11. /*--------------------------------------*/
  12. void longinit(a,b,c)
  13. int b;
  14. long a[],c;
  15. {
  16.         int j;
  17.         for (j=0;j<b;j++)
  18.              a[j]=c;
  19. }
  20.