de-lint. disable c++ parentheses warnings. fix casts in AROSPDFApp.cc
[AROS-Contrib.git] / libini / iniPropertyUpdate.c
blob17bf434bf94ea36f7832c7cef93cf76e6fe9699f
1 /**********************************************************************************
2 * .
5 **************************************************
6 * This code was created by Peter Harvey @ CodeByDesign.
7 * Released under LGPL 28.JAN.99
9 * Contributions from...
10 * -----------------------------------------------
11 * Peter Harvey - pharvey@codebydesign.com
12 **************************************************/
14 #include "inifile_intern.h"
15 #include "ini.h"
16 #include <aros/libcall.h>
18 /*****************************************************************************
19 NAME */
20 AROS_LH3(int, iniPropertyUpdate,
22 /* SYNOPSIS */
23 AROS_LHA(HINI, hIni, D0),
24 AROS_LHA(char *, pszProperty, A0),
25 AROS_LHA(char *, pszValue, A1),
27 /* LOCATION */
28 struct Library *, inifileBase, 39, inifile)
30 /* FUNCTION
32 INPUTS
34 RESULT
36 NOTES
38 EXAMPLE
40 BUGS
42 SEE ALSO
44 INTERNALS
46 HISTORY
48 *****************************************************************************/
50 AROS_LIBFUNC_INIT
52 /* SANITY CHECKS */
53 if ( hIni == NULL )
54 return INI_ERROR;
56 if ( hIni->hCurObject == NULL )
57 return INI_ERROR;
59 if ( hIni->hCurProperty == NULL )
60 return INI_ERROR;
62 /* Ok */
63 strncpy( hIni->hCurProperty->szName, pszProperty, INI_MAX_PROPERTY_NAME );
64 strncpy( hIni->hCurProperty->szValue, pszValue, INI_MAX_PROPERTY_VALUE );
66 return INI_SUCCESS;
68 AROS_LIBFUNC_EXIT
69 } /* iniPropertyUpdate */