dickiebird
Programmer
Given the following code fragments:-
typedef struct
{
char account_code[15];
char agent_code[5];
char description[30];
char deflt_sel_cd[4];
char agnt_spl_acc;
char filler[39];
} B1977_REC;
main()
{
B1977_REC rec;
if(status)
format_agent_code(&rec.agent_code);
etc etc etc
}
void format_agent_code(char *agent)
{
char code1[ AG_LEN + 1 ], code2[ AG_LEN ];
/*
* Check for all spaces
*/
if (strncmp(agent..................
etc etc
}
I get the following error :
"database_access.c", line 6256.27: 1506-280 (W) Function argument assignment between types "unsigned char*" and "unsigned char(*)[5]" is not allowed.
This wasn't ever my code - until now !
Any help or guidance would be most appreciated.
Thanks
Dickie Bird
typedef struct
{
char account_code[15];
char agent_code[5];
char description[30];
char deflt_sel_cd[4];
char agnt_spl_acc;
char filler[39];
} B1977_REC;
main()
{
B1977_REC rec;
if(status)
format_agent_code(&rec.agent_code);
etc etc etc
}
void format_agent_code(char *agent)
{
char code1[ AG_LEN + 1 ], code2[ AG_LEN ];
/*
* Check for all spaces
*/
if (strncmp(agent..................
etc etc
}
I get the following error :
"database_access.c", line 6256.27: 1506-280 (W) Function argument assignment between types "unsigned char*" and "unsigned char(*)[5]" is not allowed.
This wasn't ever my code - until now !
Any help or guidance would be most appreciated.
Thanks
Dickie Bird