---
title: "strcat | open.mp"
description: "This function concatenates (joins together) two strings into the destination string."
canonical: https://omp.itsneufox.com/nl/docs/scripting/functions/strcat
language: nl
---

# strcat

## Description

This function concatenates (joins together) two strings into the destination string.

| Name | Description |
| --- | --- |
| dest\[\] | The string to store the two concatenated strings in. |
| const source\[\] | The source string. |
| maxlength = sizeof (dest) | The maximum length of the destination. |

## Returns

The length of the new destination string.

## Examples

```c
new string[40] = "Hello";
strcat(string, " World!");

// The string is now 'Hello World!'
```

## Related Functions

-   [strcmp](https://omp.itsneufox.com/nl/docs/scripting/functions/strcmp): Compare two strings to check if they are the same.
-   [strfind](https://omp.itsneufox.com/nl/docs/scripting/functions/strfind): Search for a string in another string.
-   [strdel](https://omp.itsneufox.com/nl/docs/scripting/functions/strdel): Delete part of a string.
-   [strins](https://omp.itsneufox.com/nl/docs/scripting/functions/strins): Insert text into a string.
-   [strlen](https://omp.itsneufox.com/nl/docs/scripting/functions/strlen): Get the length of a string.
-   [strmid](https://omp.itsneufox.com/nl/docs/scripting/functions/strmid): Extract part of a string into another string.
-   [strpack](https://omp.itsneufox.com/nl/docs/scripting/functions/strpack): Pack a string into a destination string.
-   [strval](https://omp.itsneufox.com/nl/docs/scripting/functions/strval): Convert a string into an integer.
