diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2009-01-28 12:22:49 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2009-01-28 12:22:49 +0000 |
commit | 4aa064c23d82c21c2bf638cbb3bdebc5be5bff7a (patch) | |
tree | 61ef5d301878facfa3eff204b6f121f94fadb166 /share | |
parent | eb485ee9d248dfa6abcff4afd5a277e49f803d8f (diff) |
Document the return value of RB_INSERT in tree(3).
wording fixes and ok henning@
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man3/tree.3 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/share/man/man3/tree.3 b/share/man/man3/tree.3 index 263ad896ef4..ffb39ef78f5 100644 --- a/share/man/man3/tree.3 +++ b/share/man/man3/tree.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tree.3,v 1.19 2009/01/28 10:26:48 stsp Exp $ +.\" $OpenBSD: tree.3,v 1.20 2009/01/28 12:22:48 stsp Exp $ .\"/* .\" * Copyright 2002 Niels Provos <provos@citi.umich.edu> .\" * All rights reserved. @@ -393,6 +393,11 @@ The macro inserts the new element .Fa elm into the tree. +Upon success, +.Va NULL +is returned. +If a matching element already exists in the tree, the insertion is +aborted, and a pointer to the existing element is returned. .Pp The .Fn RB_REMOVE |