Ver Mensaje Individual
  #4 (permalink)  
Antiguo 27/09/2010, 12:48
logic_tristaN
 
Fecha de Ingreso: septiembre-2010
Mensajes: 16
Antigüedad: 13 años, 7 meses
Puntos: 0
Respuesta: Una mano con esta funcion.

Mmmm ya encontre el error de logica D:, lo posteo por si alguien lo necesita:

Código C:
Ver original
  1. int stringLen(const char *string1, const char *string2)
  2. {
  3.     short c=0, c2=0;
  4.     while (*(string1++) != '\0')
  5.     {
  6.         c++;
  7.     }
  8.     while (*(string2++) != '\0')
  9.     {
  10.         c2++;
  11.     }
  12.     string1 -= (c+1);
  13.     string2 -= (c2+1);
  14.     (c>c2) ? (int)string1 : (int)string2;      
  15. }
:-p