Ignore:
Timestamp:
Jan 9, 2006 5:20:59 PM (18 years ago)
Author:
bennylp
Message:

Fixed bugs and added tests to handle NULL and zero length strings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pjlib-test/main.c

    r65 r118  
    5858{ 
    5959    int rc; 
     60    int interractive = 0; 
    6061 
    6162    boost(); 
     
    6566        char *arg = argv[--argc]; 
    6667 
    67         if (*arg=='-' && *(arg+1)=='p') { 
     68        if (*arg=='-' && *(arg+1)=='i') { 
     69            interractive = 1; 
     70 
     71        } else if (*arg=='-' && *(arg+1)=='p') { 
    6872            pj_str_t port = pj_str(argv[--argc]); 
    6973 
     
    8993    rc = test_main(); 
    9094 
     95    if (interractive) { 
     96        char s[10]; 
     97        puts(""); 
     98        puts("Press <ENTER> to exit"); 
     99        fgets(s, sizeof(s), stdin); 
     100    } 
     101 
    91102    return rc; 
    92103} 
Note: See TracChangeset for help on using the changeset viewer.