Linux的作者Linus Torvalds的C语言函数库源代码(部分)string.c1 /*2 * linux/lib/string.c3 *4 * Copyright (C) 1991, 1992 Linus Torvalds5 */6 7 /*8 * stupid library routines.. The optimized ve rsions should generally be found9 * as inline code in 10 *11 * These are bug
string.h函数的实现 char *strcpy_1(char *dst,const char *src) { while(*dst++=*src++); return dst; //notice: wrong return!!!! } //this is a fault function // Left it to remind me never commit the same question char * strcpy_2(char * dst
/*** *string.h - declarations for string manipulation functions * * Copyright (c) Microsoft Corporation. All rights reserved. * *Purpose: * This file contains the function declarations for the string * manipulation functions. * [ANSI/System V] * * [