📄 strcat.c
字号:
/*************************************************************************** Copyright Mentor Graphics Corporation 2002* All Rights Reserved.** THIS WORK CONTAINS TRADE SECRET AND PROPRIETARY INFORMATION WHICH IS* THE PROPERTY OF MENTOR GRAPHICS CORPORATION OR ITS LICENSORS AND IS* SUBJECT TO LICENSE TERMS.**************************************************************************//************************************************************************** FILE NAME VERSION** strcat.c Nucleus Common Library 1.1** DESCRIPTION** This file contains the implementation of NCL_strcat.** DATA STRUCTURES** None.** FUNCTIONS** NCL_strcat** DEPENDENCIES** ncl.h* string.h* nucleus.h*************************************************************************/#define NU_NCL_SOURCE_FILE#include "ncl\inc\ncl.h"#include "ncl\inc\string.h"#include "plus\nucleus.h" /* MMU Support *//*************************************************************************** FUNCTION** NCL_strcat** DESCRIPTION** Append a copy of s2 to the end of s1.** INPUTS** s1 String in the front* s2 String to be appended to s1 (in the back)** OUTPUTS** char* Pointer to the null-terminated result**************************************************************************/char *NCL_strcat(register char *s1, register const char *s2){ register char *p = s1; /* save start */ while (*s1++); /* find end */ for (--s1; (*s1++ = *s2++) != 0;); /* append s2 */ return p;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -