ggiParseMode man page on Mandriva

Man page or keyword search:  
man Server   17060 pages
apropos Keyword Search (all sections)
Output format
Mandriva logo
[printable version]

ggiParseMode(3)			      GGI		       ggiParseMode(3)

NAME
       ggiParseMode,  ggiPrintMode,  ggiSPrintMode,  ggiFPrintMode : Parse and
       print formatted strings specifying modes

SYNOPSIS
       #include <ggi/ggi.h>

       int ggiParseMode(const char *s, ggi_mode *m);

       #define ggiPrintMode(m) ggiFPrintMode(stdout,(m))

       int ggiSPrintMode(char *s, const ggi_mode *m);
       int ggiFPrintMode(FILE *s, const ggi_mode *m);

DESCRIPTION
       ggiParseMode parses a string into a ggi_mode(3).

       The ggi*PrintMode functions print all the members of ggi_mode(3)	 in  a
       human-readable  form.   ggiSPrintMode  outputs to a preallocated string
       buffer, ggiFPrintMode outputs to a stdio FILE, and ggiPrintMode outputs
       to   standard   output.	 These	functions  correspond  to  sprintf(3),
       fprintf(3) and printf(3) respectively.

       The format of the string used by these functions is exactly the same as
       the  one	 used  in  the	GGI_DEFMODE  environment variable described in
       libggi(7).

       The string returned by both ggiSPrintMode and  ggiFPrintMode  does  not
       contain a trailing newline.

RETURN VALUE
       ggiParseMode returns:

       0      on  success,  i.e.  the  string  was  correct.   However, errors
	      involving GT_*, position information, or mismatched brackets  do
	      not make it fail; these errors are simply ignored.

       <0     if  there	 is text that can not be parsed.  This text is printed
	      to stderr.  All parameters parsed so far are written into m.

       So m contains all parameters that have been  successfully  parsed.  For
       most  applications  there  will be no need for testing ggiParseMode for
       failure.

SEE ALSO
       libggi(7), ggi-error(3)

libggi-2.2.x			  2006-12-30		       ggiParseMode(3)
[top]

List of man pages available for Mandriva

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net