xboxut
Messages postés172Date d'inscriptionjeudi 4 mars 2004StatutMembreDernière intervention27 novembre 20091 10 sept. 2005 à 13:18
t un marrant deja donne plus de recision : dans ton buffer tu a tester pendant le debug voir si y avait bien une chaine ac engineer, Ensuite tu a koi comme bug ? seg fault? dans ce cas c que ta chaine buffer n est pas fermé par un \0 et ne contient pas Engineer.
Search string for occurrence of character set.
Scans string1 character by character, returning the number of characters read until the first occurrence of any character included in string2.
The search includes terminating null-characters, so the function will return the length of string1 if none of the characters included in string2 is in string1.
Parameters.
string1
Null-terminated string to be scanned.
string2
Null-terminated string containing the character set to search for.
Return Value.
Returns the position in string1 of the first occurence of a component character of string2.
xboxut
Messages postés172Date d'inscriptionjeudi 4 mars 2004StatutMembreDernière intervention27 novembre 20091 10 sept. 2005 à 16:57
habon je croyais que ct fait pour marcher jusqu au \0 de ta chaine si il trouvait pas :D, lol treve de plaisanterie je doute fort que strstr soit bugger vu l age et l utilisation intensive de la fonction ...
je te conseille de faire tourner ton prog et debug et de mettre des point d arret a toute les lignes XD