本文转载自:http://www.cppblog.com/mmdengwo/archive/2011/04/14/144253.aspx
#include <stdio.h>#include <stdlib.h>
int strcmp(char *source, char *dest)
{
![](https://img-blog.csdnimg.cn/img_convert/7acff9044011b37c2e9e3edbc47f8af7.gif)
![](https://img-blog.csdnimg.cn/img_convert/869189452a679209a70242c9324eaec5.gif)
![](https://img-blog.csdnimg.cn/img_convert/f9fcfa8a20d163cefaccbecfd0710edd.gif)
![](https://img-blog.csdnimg.cn/img_convert/bb570577616e916eb1fb5f28dd12b024.gif)
![](https://img-blog.csdnimg.cn/img_convert/edcb8079a176a9f8af4db467cc96ffcb.gif)
![](https://img-blog.csdnimg.cn/img_convert/4ea587fdd29a5b8728240026e8792ef3.gif)
![](https://img-blog.csdnimg.cn/img_convert/5204fad81a15fe48ea5e8d23e24c625c.gif)
![](https://img-blog.csdnimg.cn/img_convert/448504a3849dff07baa66d51a39a67ff.gif)
![](https://img-blog.csdnimg.cn/img_convert/16301d1439da7f76a00155e4c04bdd95.gif)
![](https://img-blog.csdnimg.cn/img_convert/08c0b022d7bbc931a5648cd2fdd4e946.gif)
![](https://img-blog.csdnimg.cn/img_convert/4bf5c85fb970758b82a78c7565ecafa4.gif)
![](https://img-blog.csdnimg.cn/img_convert/bf108eb482d30700a0ee36ef33626409.gif)
![](https://img-blog.csdnimg.cn/img_convert/92cf65adc36deff21438729d32bd9252.gif)
![](https://img-blog.csdnimg.cn/img_convert/49648ef7a6df825b6e2fb554b705edd9.gif)
![](https://img-blog.csdnimg.cn/img_convert/856e0e17688bcb88a85654ea5926d424.gif)
![](https://img-blog.csdnimg.cn/img_convert/e968201ca88eac6ce53b06a9a0addd69.gif)
![](https://img-blog.csdnimg.cn/img_convert/58726a6145cd1411ab847ebca9c51757.gif)
![](https://img-blog.csdnimg.cn/img_convert/1a8a66836221388a53e6929b34bdef06.gif)
![](https://img-blog.csdnimg.cn/img_convert/ce327795712115b4a19dc7bb848be4d4.gif)
![](https://img-blog.csdnimg.cn/img_convert/fd6772ed78dc8d55fa4bb116ed09ce8c.gif)
本文转载自:http://www.cppblog.com/mmdengwo/archive/2011/04/14/144253.aspx
#include <stdio.h>#include <stdlib.h>
int strcmp(char *source, char *dest)
{