sun.com | docs.sun.com |  | How To Buy | My Sun | Worldwide Sites |

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Program Interface | cmm_strerror(3CMM)

- NAME
- SYNOPSIS
- DESCRIPTION
- RETURN VALUES
- ATTRIBUTES
- SEE ALSO

## NAME

> cmm_strerror - get error message string

## SYNOPSIS

>     cc [ flag... ] file...  -lcgha_cmm  -lrt

>     #include <cmm.h>

> `char *cmm_strerror(cmm_error_t errnum);`

## DESCRIPTION

> The cmm_strerror() function maps the error number in `errnum` to an error message string, and returns a pointer to that string. The returned string must not be overwritten or freed by the calling process.

> `errnum` is a string representing an error code.

## RETURN VALUES

> The cmm_strerror() function returns one of the following values:

> "No Error"

>   `errnum` is equal to `CMM_OK`.

> "Unknown Error"

>   `errnum` does not correspond to any error code.

> "A string equal to the error code"

>   `errnum` is equal to the error code.

## ATTRIBUTES

> See `attributes`(5) for descriptions of the following attributes:

> ATTRIBUTE TYPE | ATTRIBUTE VALUE
> --- | ---
> Architecture | SPARC
> Availability | SUNWnhcmd
> Interface Stability | Evolving
> MT-Level | MT-Safe
> Cancel-Safety | Deferred-Cancel-Safe Asynchronous-Cancel-Unsafe

## SEE ALSO

> `Intro`(3CMM)

Netra HAS FS 2.1 | Go To Top | Last Changed September 2004

Company Info | Contact | Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.