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

  1. /*--------------------------------------*/
  2. /*                    */
  3. /*          RIGHT_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.     The    */
  10. /* fourth argument is the length of the */
  11. /* third argument.            */
  12. /*                    */
  13. /*--------------------------------------*/
  14. void right_str(a,b,c,d)
  15. char a[],c[];
  16. int b,d;
  17. {
  18.     int j;
  19.     for (j=0;j<b;j++)
  20.              a[j]=c[d-b+j];
  21. }
  22.