Can I use strtok() in a Linux Kernel Module?

前端 未结 3 484
暖寄归人
暖寄归人 2020-12-18 02:02

I need to do a parse on the data written to my module, and the use of the strtok() function of string.h would be useful. However I\'ve tried

#include 

        
3条回答
  •  独厮守ぢ
    2020-12-18 02:28

    char *strsep(char **s, const char *ct)

    would be the function that you are looking for.
    You can look it up in lxr, source/lib/string.c, line 589 (for version/release 4.6)

提交回复
热议问题