I have a question about read MySql tables.
I the sample code, move the data from the database with the follow instruction
// Read the rows and print them
row_values *row = NULL;
long head_count = 0;
row = cur_mem->get_next_row();
if (row != NULL)
head_count = atolr(row->values);
} while (row != NULL);
In this case, use atol() method to help store the array value into the head_count variable.
This method only work with numeric data. That correct?
The value that I need to store into head_count variable came from the dtabase and is the letter “A”.
What is the counterpart of the method atol() to store the character data into the same varaible.
The sample is in the page 19 under Complex Select title, of the document that I include in this post.
Thank you in advance for the help.