write either an integer or string to a record.
| 200 | |
| 201 | // write either an integer or string to a record. |
| 202 | bool oeLnxAppDatabase::write(const char *label, const char *entry, int entrylen) { |
| 203 | ASSERT(label); |
| 204 | ASSERT(entry); |
| 205 | if (!database) { |
| 206 | mprintf(0, "Can't write record because database NULL\n"); |
| 207 | return false; |
| 208 | } |
| 209 | |
| 210 | return database->CreateRecord((char *)label, REGT_STRING, (void *)entry); |
| 211 | } |
| 212 | |
| 213 | bool oeLnxAppDatabase::write(const char *label, int entry) { |
| 214 | ASSERT(label); |
no test coverage detected