Loin de moi l'idée de réecrire strstr
En ce qui concerne la compréhension, c'est juste pour avoir une idée, pas nécessairement précise, du fonctionnement de la fonction.
D'ailleurs, ca risque pas d'etre facilité, je cite :
Code :
- /*
- * My personal strstr() implementation that beats most other algorithms.
- * Until someone tells me otherwise, I assume that this is the
- * fastest implementation of strstr() in C.
- * I deliberately chose not to comment it. You should have at least
- * as much fun trying to understand it, as I had to write it :-).
- *
- * Stephen R. van den Berg, berg@pool.informatik.rwth-aachen.de */
|
A+
Message édité par Evadream -jbd- le 28-11-2002 à 13:29:48