Show
Ignore:
Timestamp:
10/24/08 15:20:20 (16 years ago)
Author:
jgaeddert
Message:

modifying cbr search to return 0 when no solution is found

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • vtcross/trunk/src/main_cbr.c

    r20 r25  
    4040    float retvals[num_cols]; 
    4141    rc = cbr_search(mycbr, search_names, search_ops, search_vals, 2, retvals); 
     42    if (rc) 
     43        printf("solution found!\n"); 
     44    else 
     45        printf("warning! no solution found\n"); 
    4246 
    4347    // clean up