討論串[問題] glibc 2.7 strlen.c
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
試著練習一下. 37 /* Handle the first few characters by reading one character at a time.. 38 Do this until CHAR_PTR is aligned on a longword boundary. */. 39
(還有1127個字)
內容預覽:
剛剛無聊試了試自製的strlen,結果發現自製的比<string.h>的strlen慢滿多的. 自製的差不多長這樣-> while(str[len] != '\0') len++. 所以很好奇人家是怎麼寫的,實際去找了glibc對strlen的實作之後~~~. 大為驚嘆!!!. 這什麼東東!!!.
(還有179個字)
首頁
上一頁
1
下一頁
尾頁