Skip to contentSkip to conversation

dlerror.3 query

DISCUSSION Jonny Grant 2 participants 2 messages Dec 5, 2015 – Dec 26, 2015 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

Hello

Quoting from:
http://man7.org/linux/man-pages/man3/dlerror.3.html

"The dlerror() function returns a human-readable string describing the most recent error that occurred from a call to one of the functions in the dlopen API since the last call to dlerror(). The returned string does not include a trailing newline."

My feeling is that this should say the string is null-terminated. Also I think it doesn't need to say it "does not include a trailing newline" - never seen that mentioned before, so probably no one would think it might.

Regards, Jonny
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 5 lines · Jonny Grant

Hello

Quoting from:
http://man7.org/linux/man-pages/man3/dlerror.3.html

Quoted 8 lines

"The dlerror() function returns a human-readable string describing the most recent error that occurred from a call to one of the functions in the dlopen API since the last call to dlerror(). The returned string does not include a trailing newline."

My feeling is that this should say the string is null-terminated. Also I think it doesn't need to say it "does not include a trailing newline" - never seen that mentioned before, so probably no one would think it might.

I added the words "null-terminated" to the description, but I think the mention that the string does not have a trailing newline does no harm (and even POSIX has similar wording), so I left that in.

Cheers,

Michael

Signature · 7 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html