home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 1
/
FishNMoreVol1.bin
/
more
/
code_examples
/
librar
/
right_st.c
< prev
next >
Wrap
Text File
|
1989-02-08
|
549b
|
22 lines
/*--------------------------------------*/
/* */
/* RIGHT_STR(X,X,X,X) */
/* */
/* Places part of a character array */
/* given the third argument into the */
/* character array given in the first */
/* argument. The second argument is the*/
/* number of bytes to transfer. The */
/* fourth argument is the length of the */
/* third argument. */
/* */
/*--------------------------------------*/
void right_str(a,b,c,d)
char a[],c[];
int b,d;
{
int j;
for (j=0;j<b;j++)
a[j]=c[d-b+j];
}