XINU
Functions
strcpy.c File Reference

文字列Aに文字列Bをコピーする。 More...

Go to the source code of this file.

Functions

int strcpy (char *tar, char *src)
 文字列Aに文字列B(NULL終端を含めて)をコピーする。 More...
 

Detailed Description

文字列Aに文字列Bをコピーする。

Definition in file strcpy.c.

Function Documentation

◆ strcpy()

int strcpy ( char *  tar,
char *  src 
)

文字列Aに文字列B(NULL終端を含めて)をコピーする。

Parameters
[in,out]tarコピー先の文字列
[in]srcコピーする文字列
Returns
0を返す。

Definition at line 12 of file strcpy.c.

Referenced by addattr(), addton(), devisid(), devonid(), getattrid(), newdev(), and newtype().

13 {
14  while ((*tar++ = *src++) != '\0')
15  {
16  ;
17  }
18  return 0;
19 }
Here is the caller graph for this function: