GNU Info

Info Node: (gpgme.info)Error Strings

(gpgme.info)Error Strings


Prev: Error Values Up: Error Handling
Enter node , (file) or (file)node

Error Strings
=============

 - Function: const char * gpgme_strerror (GpgmeError ERR)
     The function `gpgme_strerror' returns a pointer to a statically
     allocated string containing a description of the error with the
     error value ERR.  This string can be used to output a diagnostic
     message to the user.

     The following example illustrates the use of `gpgme_strerror':

          GpgmeCtx ctx;
          GpgmeError err = gpgme_new (&ctx);
          if (err)
            {
              fprintf (stderr, "%s: creating GpgME context failed: %s\n",
                       argv[0], gpgme_strerror (err));
              exit (1);
            }


automatically generated by info2www version 1.2.2.9