como utilizar strcmp

Tuxt
26 de Noviembre del 2004
Como se utiliza strcmp? por ejemplo strcmp(login, lg)... como sé yo que m esta diciento que son iguales o que son diferentes?

Muchas gracias!!!

karandrez
26 de Noviembre del 2004
LA FUNCION STRCMP COMPARA SINTACTICAMENTE LAS PALABRAS, ESTO QUIERE DECIR QUE REALIZA UNA OPERACION MATEMATICA DE SU NUMERO ASCII, SI LAS DOS PALABRAS SON IGUALES EL RESULTADO DE LA OPERACION ES 0