Bug 24789 - strsep man page return value incorrect
strsep man page return value incorrect
Product: Red Hat Linux
Classification: Retired
Component: man-pages (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Trond Eivind Glomsrxd
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2001-01-23 19:37 EST by Need Real Name
Modified: 2007-04-18 12:30 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-01-30 12:55:25 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2001-01-23 19:37:35 EST
In the manpage for strsep, it states:

The strsep() function returns a pointer to the token,  or NULL if delim is
not found in stringp.

It seems that if the delimeter is not found, that it returns a pointer to
stringp, not NULL, which would make much more sense for parsing delimited
Comment 1 Trond Eivind Glomsrxd 2001-01-30 12:55:01 EST
The info page has better (and more correct) info, still pondering what to put in
the man pages.
Comment 2 Trond Eivind Glomsrxd 2001-02-14 00:29:53 EST
Fixed in man-pages-1.34-2, coming soon to a rawhide near you.

Note You need to log in before you can comment on or make changes to this bug.