在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
芯片精品文章合集(500篇!)    创芯人才网--重磅上线啦!
查看: 5787|回复: 0

用MIPS实现字符串操作子程序?

[复制链接]
发表于 2006-11-3 19:08:54 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
想找一个用mips实现的下面字符串程序,找了一下午,没有,哪位帮帮忙?谢谢!!
1.strcat (s1,s2)
appends a copy of string s2,including the terminating null
      character, to the end of string s 1. The function returns a pointer to the null-
        terminated result. The initial character of s2  overrides the null character at the
        end of s 1.
2.strcmp(sl,s2)
compares two strings byte-by-byte.  The function returns  an
      integer greater than, equal to, or less than 0, if the string pointed to by s 1  is
      greater than, equal to, or less than the string pointed to by s2  respectively.
      The sign of a non-zero return value is determined by the sign of the difference
      between the values of the first pair of bytes that differ in the strings being
      compared. Bytes following a null byte are not compared.
3.strcmpi(s1,s2)
this function performs in the same manner as strcmp, except that
      it considers both the lower and upper case version of a letter to be the same
      character. Hint: study the ASCII table in binary.
4.strstr(sl,s2)
locates the first occurrence of the string s2  in the string s1
      (excluding the terminating null character). The address of the start of the
        located stringy (or 0 if the stringy is not found) is returned.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /3 下一条

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-4-25 06:51 , Processed in 0.017072 second(s), 8 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表