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

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