Etude détaillée du module String de la libc

Date de publication : 19/07/2007

Par Franck Hecht (Mon blog) (retour aux articles)
 

Cet article a pour but d'étudier en profondeur des fonctions du module String (gestion des chaînes de caractères et des blocs mémoire) de la libc standard en montrant un algorithme éventuel pour chacune des fonctions et une implémentation naïve adaptée au Langage C !

Commentez cet article : commentez · Donner une note à l'article (4)


 

Introduction
I. Introduction
I-A. Remerciements
I-B. Pré-requis
I-C. Préparatifs
c_memset
II. c_memset
II-A. Prototype
II-B. Description et comportement
II-C. Algorithme
II-D. Implémentation
II-E. Tests
c_memcpy
III. c_memcpy
III-A. Prototype
III-B. Description et comportement
III-C. Algorithme
III-D. Implémentation
III-E. Tests
c_memmove
IV. c_memmove
IV-A. Prototype
IV-B. Description et comportement
IV-C. Algorithme
IV-D. Implémentation
IV-E. Tests
c_memcmp
V. c_memcmp
V-A. Prototype
V-B. Description et comportement
V-C. Algorithme
V-D. Implémentation
V-E. Tests
c_memchr
VI. c_memchr
VI-A. Prototype
VI-B. Description et comportement
VI-C. Algorithme
VI-D. Implémentation
VI-E. Tests
c_strlen
VII. c_strlen
VII-A. Prototype
VII-B. Description et comportement
VII-C. Algorithme
VII-D. Implémentation
VII-E. Tests
c_strcpy
VIII. c_strcpy
VIII-A. Prototype
VIII-B. Description et comportement
VIII-C. Algorithme
VIII-D. Implémentation
VIII-E. Tests
c_strncpy
IX. c_strncpy
IX-A. Prototype
IX-B. Description et comportement
IX-C. Algorithme
IX-D. Implémentation
IX-E. Tests
c_strcat
X. c_strcat
V-A. Prototype
X-B. Description et comportement
X-C. Algorithme
X-D. Implémentation
X-E. Tests
c_strncat
XI. c_strncat
XI-A. Prototype
XI-B. Description et comportement
XI-C. Algorithme
XI-D. Implémentation
XI-E. Tests
c_strchr
XII. c_strchr
XII-A. Prototype
XII-B. Description et comportement
XII-C. Algorithme
XII-D. Implémentation
XII-E. Tests
c_strrchr
XIII. c_strrchr
XIII-A. Prototype
XIII-B. Description et comportement
XIII-C. Algorithme
XIII-D. Implémentation
XIII-E. Tests
c_strcmp
XIV. c_strcmp
XIV-A. Prototype
XIV-B. Description et comportement
XIV-C. Algorithme
XIV-D. Implémentation
XIV-E. Tests
c_strncmp
XV. c_strncmp
XV-A. Prototype
XV-B. Description et comportement
XV-C. Algorithme
XV-D. Implémentation
XV-E. Tests
c_strpbrk
XVI. c_strpbrk
XVI-A. Prototype
XVI-B. Description et comportement
XVI-C. Algorithme
XVI-D. Implémentation
XVI-E. Tests
c_strspn
XVII. c_strspn
XVII-A. Prototype
XVII-B. Description et comportement
XVII-C. Algorithme
XVII-D. Implémentation
XVII-E. Tests
c_strcspn
XVIII. c_strcspn
XVIII-A. Prototype
XVIII-B. Description et comportement
XVIII-C. Algorithme
XVIII-D. Implémentation
XVIII-E. Tests
c_strstr
XIX. c_strstr
XIX-A. Prototype
XIX-B. Description et comportement
XIX-C. Algorithme
XIX-D. Implémentation
XIX-E. Tests
c_strtok
XX. c_strtok
XX-A. Prototype
XX-B. Description et comportement
XX-C. Algorithme
XX-D. Implémentation
XX-E. Tests
Le code source complet de l'article
XXI. Le code source complet de l'article
XXI-A. Fichier: c_stddef.h
XXI-B. Fichier: c_string.h
XXI-C. Fichier: c_string.c




 

Valid XHTML 1.0 TransitionalValid CSS!

Copyright © 2007 Franck Hecht. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents, images, etc sans l'autorisation expresse de l'auteur. Sinon vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.

Vos questions techniques : forum d'entraide C - Publiez vos articles, tutoriels et cours
et rejoignez-nous dans l'équipe de rédaction du club d'entraide des développeurs francophones
Nous contacter - Hébergement - Participez - Copyright © 2000-2010 www.developpez.com - Legal informations.