Skip to content
Snippets Groups Projects
Verified Commit a42c16b1 authored by orestis.malaspin's avatar orestis.malaspin
Browse files

ajout fonctions

parent 082d3c89
Branches
Tags
No related merge requests found
......@@ -51,5 +51,22 @@ name[4] = '\0'; // = 0;
char name[] = {'P', 'a', 'u', 'l', '\0'};
```
# Fonctions
- Il existe une grande quantités de fonction pour la manipulation de chaînes de caractères dans `string.h`.
```bash
$ man 3 string
```
- Fonctions principales:
```C
size_t strlen(char *str);
char *strcpy(char *dest, const char *src);
char *strncpy(char *dest, const char *src, size_t len);
int strncmp(char *str1, char *str2, size_t len);
int strcmp(char *str1, char *str2);
```
- Pour avoir la liste complète: `man string`.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment