strchr.c
来自「这是TFTP 协议的最新源代码 很辛苦的」· C语言 代码 · 共 25 行
C
25 行
/* this code is an extract of several string functions from the string.c * file found in the uClibc distribution. The original author copyright: *//* Copyright (C) 1995,1996 Robert de Bath <rdebath@cix.compulink.co.uk> * This file is part of the Linux-8086 C library and is distributed * under the GNU Library General Public License. */#include "baselib.h"char *strchr (const char *s, int c){ char ch; for (;;) { if ((ch = *s) == c) return (char *) s; if (ch == 0) return 0; s++; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?