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

  1. /*--------------------------------------*/
  2. /*                    */
  3. /*            LEFT_STR(X,X,X,X)        */
  4. /*                    */
  5. /* Places part of a character array    */
  6. /* given the third argument into the    */
  7. /* character array given in the first    */
  8. /* argument.  The second argument is the*/
  9. /* number of bytes to transfer.        */
  10. /*                    */
  11. /*--------------------------------------*/
  12. void left_str(a,b,d)
  13. char a[],d[];
  14. int b;
  15. {
  16.     int j;
  17.     for (j=0;j<b;j++)
  18.              a[j]=d[j];
  19. }