> For the complete documentation index, see [llms.txt](https://glados-2.gitbook.io/clight/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://glados-2.gitbook.io/clight/reference/functions/function-prototypes.md).

# Function Prototypes

A function prototype precedes the function definition and specifies the name, return type and a function's arguments.

## Syntax

[*`function-prototype`*](/clight/reference/functions/function-prototypes.md)*:*\
&#x20;   [*`type-specifier`*](/clight/reference/declarations-and-types.md) [*`declarator`*](/clight/reference/functions/function-definitions.md) **`;`**

## Example

```c
int add(int a, int b);
void test();
```
