Skip to content

Commit 80823c7

Browse files
authored
Merge pull request #1189 from gitSomS/master
Add documentation for strcat function
2 parents a754980 + b050a0f commit 80823c7

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

  • frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
title: strcat
3+
sidebar_label: strcat
4+
description: Esta função concatena (junta) duas strings numa string de destino.
5+
tags: ["string"]
6+
---
7+
8+
<LowercaseNote />
9+
10+
## Descrição
11+
12+
Esta função concatena (junta) duas strings numa string de destino.
13+
14+
15+
16+
| Nome | Descrição |
17+
| ------------------------- | ------------------------------------------------------------- |
18+
| dest[] | A string onde serão armazenadas as duas strings concatenadas. |
19+
| const source[] | A string de origem. |
20+
| maxlength = sizeof (dest) | O comprimento máximo da string de destino. |
21+
22+
## Retorno
23+
24+
O comprimento da nova string de destino.
25+
26+
## Exemplos
27+
28+
```c
29+
new string[40] = "Hello";
30+
strcat(string, " World!");
31+
32+
// The string is now 'Hello World!'
33+
```
34+
35+
## Funções Relacionadas
36+
37+
- [strcmp](strcmp): Compara duas strings para verificar se são iguais.
38+
- [strfind](strfind): Procura uma string dentro de outra string.
39+
- [strdel](strdel): Remove parte de uma string.
40+
- [strins](strins): Insere texto numa string.
41+
- [strlen](strlen): Obtém o comprimento de uma string.
42+
- [strmid](strmid): Extrai parte de uma string para outra string.
43+
- [strpack](strpack): Compacta uma string numa string de destino.
44+
- [strval](strval): Converte uma string num número inteiro.

0 commit comments

Comments
 (0)