# GetSysErr

Gets the error string for an error.

### Synopsis

`int32 GetSysErr( char *buff, int32 buffsize, Err err )`

### Description

This procedure returns a character string that describes an error code. The resulting string is placed in a buffer.

The procedure interprets all the fields in the err argument and returns corresponding text strings for all of them. If an error-text table is not found for the specific error, the routine uses numbers for the final error code value.

### Arguments

buff
  A pointer to a buffer to hold the error string.

buffsize
  The size of the error-text buffer, in bytes. This should be 128.

err
  The error code whose error string to get.

### Return Value

The procedure returns the number of bytes in the description string, or a negative error code if a bad buffer pointer is supplied.

### Implementation

Folio call implemented in kernel folio V20.

### Associated Files

operror.h
  ANSI C Prototype

clib.lib
  ARM Link Library

### See Also

``PrintfSysErr`()`

#