I have a question around the Oracle OCI.
I have a datatype of ub1, in oratypes.h this is defined as an unsigned char[7] (6 chars with null terminator “\0”). however, when referencing the values, it appears the code i am debugging is referencing as array variables and not as char values.
The code is as follows:
[CODE]
//
// Converts an Oracle OCI external date/time structure (char[7])
// into date a string format acceptable to Vectus.
//
static void OracleDateToStr(ub1 *date, short ind, char *buffer)
{
if (ind != 0)
buffer[0] = 0;
else
sprintf(buffer, “%02d/%02d/%04d”, (int) date[3], (int) date[2],
((int) date[0] – 100) * 100 + ((int) date[1] – 100));
[/CODE]
I guess my question is this…
What is ub1? Is it a char? in which case my code is missing the second char of each section for dd/mm, or is it an array?
Any help would be much appreciated!
cheers