.BR llapi_layout_comp_add (3)
adds the layout component
.I comp
-into the in-memory
-.IR layout
-under construction. The
-.IR layout
+into the existing in-memory
+.I layout
+under construction, and
+.I comp
+is freed. The
+.I layout
will be turned into composite if it was plain before adding. All layout
attributes of
.I comp
.B llapi_layout_comp_add()
and
.B llapi_layout_comp_del()
-return 0 on success, or -1 if an error occurred (in which case, errno is
-set appropriately).
+return 0 on success, or -1 if an error occurred (in which case,
+.B errno
+is set appropriately).
.SH ERRORS
.TP 15
.SM EINVAL