Exemplo n.º 1
0
int 
main(int argc, 
    char **argv) {

  if (argc != 3) {
    printf("Usage: %s [string1] [string2]\n", argv[0]); 
    return EXIT_FAILURE; 
  }

  printf("%d\n", strlonger(argv[1], argv[2])); 

  return EXIT_SUCCESS; 
}
Exemplo n.º 2
0
void str_Test( ) {
    char *s = "";
    char *t = "2";
    int res = strlonger( s, t );
    std::cout << res << std::endl;
}