strtok - strings without delimiters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

the strtok man-page does not specify what happens if `str` does not
contain any `delim`iters.

If you don't already know strtok one might assume then either:

- the delimiter-less string is considered the next token and thus
  returned upon the first call to strtok
- on the first call NULL is returned because there are not any tokens

Related issue: is the non-empty `str`-suffix after the last `delim`
returned as a token or not?

I know how strtok works - but perhaps it makes sense to explicitly
address these issues in the Linux man page.

Best regards
Georg
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux