Changeset 25 for vtcross/trunk
- Timestamp:
- 10/24/08 15:20:20 (16 years ago)
- Location:
- vtcross/trunk/src
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
vtcross/trunk/src/cbr.c
r24 r25 80 80 for (i=0; i<_cbr->num_columns; ++i) 81 81 _retvals[i] = sqlite3_column_double(pStatement, i); 82 } else { 83 printf("no row found\n"); 84 return 0; 82 85 } 83 86 sqlite3_finalize(pStatement); … … 91 94 }*/ 92 95 93 return rc;96 return 1; 94 97 } 95 98 … … 221 224 222 225 //ExecuteCommand(_cbr); 223 ExecuteSearchCommand(_cbr, _retvals); 224 226 return ExecuteSearchCommand(_cbr, _retvals); 227 228 #if 0 225 229 printf("search result: "); 226 230 for (i=0; i<_cbr->num_columns; i++) … … 229 233 230 234 return 0; 235 #endif 231 236 } 232 237 -
vtcross/trunk/src/main_cbr.c
r20 r25 40 40 float retvals[num_cols]; 41 41 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"); 42 46 43 47 // clean up