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

  1. /*--------------------------------------*/
  2. /*                    */
  3. /*           CHARINIT(X,X,X)        */
  4. /*                    */
  5. /* Functionality:            */
  6. /*    Initializes a character array.     */
  7. /* Arguments:                */
  8. /*    0: The character array to be    */
  9. /*       initialized.            */
  10. /*    1: The length of the array.    */
  11. /*    2: The initialization value.    */
  12. /* Returns: Nothing.            */
  13. /* Author: John Callicotte        */
  14. /* Date created/modified: 09/01/88    */
  15. /*                    */
  16. /*--------------------------------------*/
  17.  
  18. void charinit(a,b,c)
  19. char a[],c;
  20. int b;
  21. {
  22.         int j;
  23.         for (j=0;j<b;j++)
  24.              a[j]=c;
  25. }
  26.