Question: void do _ add _ entry ( struct db _ entry * * db , const char * name, const char * value ) {
void doaddentrystruct dbentry db const char name, const char value
struct dbentry ptr dbeallocname value;
TODO:
Our database is an array of dbentry Use your dbealloc function to make
a new dbentry instance to put in the database. Add it to the end of the
database. The maximum capacity of the database is defined on the top of
this file, ie DBMAXSIZE ;
You can assume there are no empty spots between entries.
For example, a database that has three items:
dotsO
After adding it will look like this:
dots
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
