GLIBC 2.22 Source Code Analysis
The GNU C Library (glibc)
http://www.gnu.org/software/libc/
Packages for the 2.22 release is downloaded from:
http://ftpmirror.gnu.org/libc/
http://ftp.gnu.org/gnu/libc/
The mirror list is at http://www.gnu.org/order/ftp.html
Download source code, analyze
[[email protected] string]# wget http://mirrors.ustc.edu.cn/gnu/libc/glibc-2.22.tar.gz[[ email protected] string]# tar xf glibc-2.22.tar.gz [[email protected] string]# cd glibc-2.22[[email protected] string]# cd string/[[email Protected] string]# cat strstr.c /* return the offset of one string within another. Copyright (C) 1994-2015 Free software foundation, inc. this file is part of the gnu c library. the gnu c library is free software; you can redistribute it and/or modify it under the terms of the gnu lesser general public license as published by the fRee software foundation; either version 2.1 of the license , or (at your option) any later version. the gnu c library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of merchantability or fitness for a Particular purpose. see the gnu lesser general public license for more details. you should have received a copy of the gnu lesser general public license along with the gnu c library; if not, see
This article is from the "Soul Bucket" blog, please be sure to keep this source http://990487026.blog.51cto.com/10133282/1725654
The GNU C Library (glibc) Source code Analysis