⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 strpbrk.c

📁 test file nucleus source
💻 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**       strpbrk.c                               Nucleus Common Library 1.1** DESCRIPTION**       This file contains the implementation of NCL_strpbrk.** DATA STRUCTURES**       None.** FUNCTIONS**       NCL_strpbrk** 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_strpbrk**   DESCRIPTION**       Return a pointer to the first occurence in s1 of any character*       contained in the string s2. Return 0 if no characters from s2*       exist in s1.**   INPUTS**       s1                  String to search within*       s2                  Characters to search for**   OUTPUTS**       char*               Pointer to first occurance of any chars*                             within s2 in s1.**************************************************************************/char *NCL_strpbrk(register const char *s1, register const char *s2){    register const char *p;    register char c;    while ((c = *s1++) != 0)    {        p = s2;        do        {            if (*p == c)            {                return (char *)(s1 - 1);            }        } while (*p++);    }    return (char *)0;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -