---
name: "MPE_Describe_state"
section: "4"
platform: "linux"
package: "mpi-doc"
version: "1.2.7-9.1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/MPE_Describe_state"
---

# MPE\_Describe\_state(4)

Create log record describing a state

## NAME

MPE\_Describe\_state -  Create log record describing a state

## SYNOPSIS

```
int MPE_Describe_state( start, end, name, color )
int start, end;
char *name, *color;
```

## INPUT PARAMETERS

- **start**

  \- event number for the start of the state

- **end**

  \- event number for the end of the state

- **name**

  \- Name of the state

- **color**

  \- color to display the state in

## NOTES

Adds string containing a state def to the logfile.  The format of the definition is (in ALOG)

```
(LOG_STATE_DEF) 0 sevent eevent 0 0 "color" "name"
```

States are added to a log file by calling  *MPE\_Log\_event* for the start and end event numbers.

## SEE ALSO

MPE\_Log\_get\_event\_number\

## LOCATION

mpe\_log.c
