long_yu2 发表于 2013-1-31 00:51:23

Linux 内核可用的字符串分割函数 strsep (String Split Function strsep in Linux Kernel)

C 语言字符串分割可使用 strsep,是 strtok 函数的替代,而且可用于内核,推荐。
 
<div style="font-family: Consolas, 'Courier New', Courier, mono, serif; width: 687px; margin-top: 18px !important; margin-right: 0px !important; margin-bottom: 18px !important; margin-left: 0px !important; padding-top: 1px; color: #333333; line-height: 26px; text-align: left;" class="dp-highlighter bg_cpp"><div style="padding-left: 45px;" class="bar"><div style="padding-top: 3px; padding-right: 8px; padding-left: 10px; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; line-height: normal; color: silver; background-color: #f8f8f8; padding-bottom: 10px; border-left-width: 3px; border-left-style: solid; border-left-color: #6ce26c;" class="tools"> view plaincopy<div style="width: 18px; height: 18px;">
页: [1]
查看完整版本: Linux 内核可用的字符串分割函数 strsep (String Split Function strsep in Linux Kernel)