TacOS  0.2
 Tout Structures de données Fichiers Fonctions Variables Définitions de type Énumérations Macros
string.h
Aller à la documentation de ce fichier.
1 
29 #ifndef _STRING_H_
30 #define _STRING_H_
31 
32 #include <types.h>
33 
49 void* memcpy(void* dest, const void* src, size_t size);
50 
61 size_t strlen(const char* s) __attribute__ ((pure));
62 
74 char *strchr(const char *s, int c);
75 
87 char *strrchr(const char *s, int c);
88 
102 int strcmp(const char *s1, const char *s2);
103 
120 int strncmp(const char *s1, const char *s2, size_t n);
121 
122 
136 int strcasecmp(const char *s1, const char *s2);
137 
154 int strncasecmp(const char *s1, const char *s2, size_t n);
155 
169 char *strchrnul(const char *s, int c);
170 
182 void *memset(void *s, int c, size_t n);
183 
203 int memcmp(const void *s1, const void *s2, size_t n);
204 
216 char *strcpy(char * s1, const char * s2);
217 
218 
234 char *strncpy(char * s1, const char * s2, size_t n);
235 
236 
248 char *strcat(char * s1, const char * s2);
249 
263 char *strncat(char * s1, const char * s2, size_t n);
264 
265 
281 void *memmove(void *dest, const void *src, size_t n);
282 
283 
296 char *strstr(const char *haystack, const char *needle);
297 
298 
312 char *strcasestr(const char *haystack, const char *needle);
313 
324 char *strdup (const char *s);
325 
335 char *strtok(char *str, const char *delim);
336 /* NOT IMPLEMENTED YET
337 
338 int strcoll(const char *s1, const char *s2);
339 
340 size_t strxfrm(char * s1, const char * s2, size_t n);
341 
342 void *memchr(const void *s, int c, size_t n);
343 
344 size_t strcspn(const char *s1, const char *s2);
345 
346 char *strpbrk(const char *s1, const char *s2);
347 
348 char *strrchr(const char *s, int c);
349 
350 size_t strspn(const char *s1, const char *s2);
351 
352 
353 char *strerror(int errnum);
354 
355 */
356 
357 #endif
char * strncpy(char *s1, const char *s2, size_t n)
Copie une chaine en se limitant aux n premiers caractères.
Definition: string.c:229
void * memset(void *s, int c, size_t n)
Rempli une zone mémoire avec un octet donné.
Definition: string.c:153
int strncmp(const char *s1, const char *s2, size_t n)
Compare deux chaînes jusqu'à n caractères.
Definition: string.c:110
char * strdup(const char *s)
Duplique une chaine.
Definition: string.c:388
size_t strlen(const char *s)
Calcule la longueur d'une chaîne de caractères.
Definition: string.c:92
int strcmp(const char *s1, const char *s2)
Compare deux chaînes.
Definition: string.c:99
char * strcpy(char *s1, const char *s2)
Copie une chaine.
Definition: string.c:217
char * strrchr(const char *s, int c)
Rechercher un caractère dans une chaîne.
Definition: string.c:410
int strcasecmp(const char *s1, const char *s2)
Compare deux chaînes.
Definition: string.c:121
void * memcpy(void *dest, const void *src, size_t size)
Copie une zone mémoire.
Definition: string.c:50
char * strchr(const char *s, int c)
Rechercher un caractère dans une chaîne.
Definition: string.c:396
char * strstr(const char *haystack, const char *needle)
Recherche une sous-chaîne.
Definition: string.c:326
char * strncat(char *s1, const char *s2, size_t n)
Concaténation de deux chaînes avec une limite aux n premiers caractères.
Definition: string.c:250
void * memmove(void *dest, const void *src, size_t n)
Copie une zone mémoire.
Definition: string.c:260
int strncasecmp(const char *s1, const char *s2, size_t n)
Compare deux chaînes jusqu'à n caractères.
Definition: string.c:132
int memcmp(const void *s1, const void *s2, size_t n)
Compare deux zones mémoire.
Definition: string.c:196
char * strchrnul(const char *s, int c)
Recherche un caractère dans une chaîne.
Definition: string.c:143
char * strcat(char *s1, const char *s2)
Concaténation de deux chaînes.
Definition: string.c:244
char * strcasestr(const char *haystack, const char *needle)
Recherche une sous-chaîne en ignorant la casse.
Definition: string.c:357
char * strtok(char *str, const char *delim)
Extraire des mots d'une chaîne.
Definition: string.c:425