NAME

MstrError - error message

SYNOPSIS

#include "csf.h"

const char *MstrError(void);

DESCRIPTION

MstrError returns the error message belonging to the current Merrno value.

RETURNS

the error message belonging to the current Merrno

EXAMPLE

#include 
#include "csf.h"

/* test if files are CSF files
 * writing error messages to
 * stdout  
 */

void main(int argc, char *argv[] )
{
  MAP *map;
  int i;

  for(i=1; i < argc; i++)
    if ((map = Mopen(argv[1], M_READ)) == NULL)
    {
        printf("%s %s\n", argv[i], MstrError());
        ResetMerrno();
    }
    else
    {
        printf("%s is a CSF file\n",argv[i]);
        Mclose(map);
    }

  exit(0);
}

SEE ALSO

Mperror , MperrorExit