string.h

来自「一个小型的操作系统,采用gcc进行开发,几千行的代码,方便初学者学习」· C头文件 代码 · 共 38 行

H
38 行
字号
/**  Snixos Project version 1.0, 2003.6*  (C) Copyright 2003,2004,2005 Jockeyson,KeqiangGao <Snallie@tom.com>*  All Rights Reserved.*  Distributed under the terms of the GNU General Public License.**  This program is a free and open source software and you can redistribute *  it and/or modify it under the terms of the GNU General Public License as*  published by the Free Software Foundation. As no any liablity is assumed *  for any incidental or consequential damages in connection with the *  information or program fragments contained herein,so any exception arised*  is at your own risk. It is ABSOLUTELY WITHOUT ANY WARRANTY.*  Bug report please send to Snallie@tom.com .*//*  string.h: prototype of function  for strings manipulation   Author : Snallie@tom.com  Time   : 2003.6*/#ifndef _STRING_H#define _STRING_Hchar * strcpy(char * dest,const char *src);char * strncpy(char * dest,const char *src,int count);char * strcat(char * dest,const char * src);char * strncat(char * dest,const char * src,int count);int strcmp(const char * cs,const char * ct);int strncmp(const char * cs,const char * ct,int count);char * strchr(const char * s,char c);int strlen(const char * s);char *strlwr(char *str);char *strupr(char *str);void * memcpy(void * dest,const void * src, int n);void * memset(void * s,char c,int count);#endif

⌨️ 快捷键说明

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