MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Curses Library Functions           formfieldvalidation(3CURSES)



NAME
     formfieldvalidation, setfieldtype, fieldtype, fieldarg
     - forms field data type validation

SYNOPSIS
     cc [ flag... ] file... -lform  -lcurses  [ library... ]
     #include 

     int setfieldtype(FIELD *field, FIELDTYPE *type...);


     FIELDTYPE *fieldtype(FIELD *field);


     char *fieldarg(FIELD *field);


DESCRIPTION
     setfieldtype() associates the specified  field  type  with
     field.   Certain  field  types  take  additional  arguments.
     TYPEALNUM, for instance, requires one,  the  minimum  width
     specification  for  the  field.  The  other predefined field
     types    are:    TYPEALPHA,    TYPENUM,     TYPEINTEGER,
     TYPENUMERIC, and TYPEREGEXP.


     fieldtype() returns a pointer to the field type  of  field.
     NUL is returned if no field type is assigned.


     fieldarg() returns a pointer to the field arguments associ-
     ated  with  the  field type of field. NUL is returned if no
     field type is assigned.

RETURN VALUES
     fieldtype() and fieldarg() return NUL on error.


     setfieldtype() returns one of the following:

     EOK              The function returned successfully.


     ESYSTEMEROR    System error.


ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:






SunOS 5.11          Last change: 31 Dec 1996                    1






Curses Library Functions           formfieldvalidation(3CURSES)



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     MT-Level                     Unsafe                      
    


SEE ALSO
     curses(3CURSES), forms(3CURSES), attributes(5)

NOTES
     The  header    automatically  includes  the  headers
      and .










































SunOS 5.11          Last change: 31 Dec 1996                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™