revert between 56095 -> 55830 in arch
[AROS.git] / arch / all-hosted / hostlib / freeerrorstr.c
blobe121c9fcabccf73c56e5405307c646d75e522354
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <aros/libcall.h>
8 /*****************************************************************************
10 NAME */
11 #include <proto/hostlib.h>
13 AROS_LH1(void, HostLib_FreeErrorStr,
15 /* SYNOPSIS */
16 AROS_LHA(char *, error, A0),
18 /* LOCATION */
19 APTR, HostLibBase, 4, HostLib)
21 /* FUNCTION
22 Release error description string.
23 In some dynamic library loaders (like in Windows) error strings
24 are allocated dynamically. They need to be explicitly freed
25 when not used any more.
27 INPUTS
28 error - Pointer to a string ro free.
30 RESULT
31 None.
33 NOTES
34 For portability sake, it is recommended to call this function on any
35 error string returned by hostlib.resource. However you can omit this
36 if you exactly know that your code runs only on UNIX-alike operating
37 system (it's UNIX-specific library or driver).
39 EXAMPLE
41 BUGS
43 SEE ALSO
45 INTERNALS
47 *****************************************************************************/
49 AROS_LIBFUNC_INIT
51 /* Our error strings are static, there's nothing to do here */
53 AROS_LIBFUNC_EXIT