Identation fixes, replace tabs with spaces, all '{' on new line.
[AROS.git] / rom / utility / namedobjectname.c
blobe36c8a1356fe8fc414ee3227477ed2b0ba0bfb53
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: NamedObjectName()
6 Lang: english
7 */
8 #include "intern.h"
10 /*****************************************************************************
12 NAME */
13 #include <proto/utility.h>
15 AROS_LH1(STRPTR, NamedObjectName,
17 /* SYNOPSIS */
18 AROS_LHA(struct NamedObject *, object, A0),
20 /* LOCATION */
21 struct UtilityBase *, UtilityBase, 42, Utility)
23 /* FUNCTION
24 Return the name associated with a NamedObject.
26 INPUTS
27 object - The NamedObject you want the name of.
29 RESULT
30 The name of the object will be returned.
32 NOTES
34 EXAMPLE
35 struct NamedObject *no;
36 STRPTR name;
38 \* Some other code here *\
40 name = NamedObjectName( no );
42 BUGS
44 SEE ALSO
45 utility/name.h
47 INTERNALS
48 The name is stored in the ln_Name field of the list node.
50 HISTORY
51 29-10-95 digulla automatically created from
52 utility_lib.fd and clib/utility_protos.h
53 11-08-96 iaint Reworked for AROS style.
54 18-10-96 iaint New NamedObject style.
56 *****************************************************************************/
58 AROS_LIBFUNC_INIT
60 /* Nice'n easy */
62 if( object )
63 return GetIntNamedObject(object)->no_Node.ln_Name;
64 else
65 return NULL;
67 AROS_LIBFUNC_EXIT
69 } /* NamedObjectName */