/****************************************************************************1* Copyright (c) 1998 Free Software Foundation, Inc. *2* *3* Permission is hereby granted, free of charge, to any person obtaining a *4* copy of this software and associated documentation files (the *5* "Software"), to deal in the Software without restriction, including *6* without limitation the rights to use, copy, modify, merge, publish, *7* distribute, distribute with modifications, sublicense, and/or sell *8* copies of the Software, and to permit persons to whom the Software is *9* furnished to do so, subject to the following conditions: *10* *11* The above copyright notice and this permission notice shall be included *12* in all copies or substantial portions of the Software. *13* *14* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *15* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *16* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *17* IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *18* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *19* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *20* THE USE OR OTHER DEALINGS IN THE SOFTWARE. *21* *22* Except as contained in this notice, the name(s) of the above copyright *23* holders shall not be used in advertising or otherwise to promote the *24* sale, use or other dealings in this Software without prior written *25* authorization. *26****************************************************************************/2728/****************************************************************************29* Author: Juergen Pfeifer <[email protected]> 1995,1997 *30****************************************************************************/3132#include "form.priv.h"3334MODULE_ID("$Id$")3536/*---------------------------------------------------------------------------37| Facility : libnform38| Function : int field_info(const FIELD *field,39| int *rows, int *cols,40| int *frow, int *fcol,41| int *nrow, int *nbuf)42|43| Description : Retrieve infos about the fields creation parameters.44|45| Return Values : E_OK - success46| E_BAD_ARGUMENT - invalid field pointer47+--------------------------------------------------------------------------*/48int field_info(const FIELD *field,49int *rows, int *cols,50int *frow, int *fcol,51int *nrow, int *nbuf)52{53if (!field)54RETURN(E_BAD_ARGUMENT);5556if (rows) *rows = field->rows;57if (cols) *cols = field->cols;58if (frow) *frow = field->frow;59if (fcol) *fcol = field->fcol;60if (nrow) *nrow = field->nrow;61if (nbuf) *nbuf = field->nbuf;62RETURN(E_OK);63}6465/*---------------------------------------------------------------------------66| Facility : libnform67| Function : int dynamic_field_info(const FIELD *field,68| int *drows, int *dcols,69| int *maxgrow)70|71| Description : Retrieve information about a dynamic fields current72| dynamic parameters.73|74| Return Values : E_OK - success75| E_BAD_ARGUMENT - invalid argument76+--------------------------------------------------------------------------*/77int dynamic_field_info(const FIELD *field,78int *drows, int *dcols, int *maxgrow)79{80if (!field)81RETURN(E_BAD_ARGUMENT);8283if (drows) *drows = field->drows;84if (dcols) *dcols = field->dcols;85if (maxgrow) *maxgrow = field->maxgrow;8687RETURN(E_OK);88}8990/* fld_info.c ends here */919293