# ord

## NAME

**ord** - get the ASCII code of the first character of a given string

## SYNOPSIS

*int* **ord**(0: *string*);

**ord** takes one unnamed argument.

## DESCRIPTION

This function transforms the first character of a given string into its decimal ASCII representation.

The first positional argument is a *string*.

## RETURN VALUE

A decimal ASCII representation as *int* or *NULL* on error.

## ERRORS

The first positional argument is *NULL* or missing.
