📄 strrchr.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** strrchr.c Nucleus Common Library 1.1** DESCRIPTION** This file contains the implementation of NCL_strrchr.** DATA STRUCTURES** None.** FUNCTIONS** NCL_strrchr** 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_strrchr** DESCRIPTION** Return a pointer to last occurrence of c in s, or 0 if s does* not contain c. if c==0 it returns a pointer to the string's* nul character.** INPUTS** s String to search within* c Characters to search for** OUTPUTS** char* Pointer to last occurance of c in s or 0 if* s does not contain c.**************************************************************************/char *NCL_strrchr(register const char *s, register int c){ register const char *mrk = (char *)0; do { if (*s == (char)c) mrk = s; } while (*s++); return (char *)mrk;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -