M
Malcolm McLean
בת×ריך ×™×•× ×¨×שון, 3 ×‘×™×•× ×™ 2012 21:49:19 UTC+1, מ×ת Ben Bacarisse:
{
char *name;
} EMPLOYEE;
const char *getname(const EMPLOYEE *employee)
{
strcpy(employee->name, "Fred");
return employee->name;
}
typedef structCan you say what you mean by this? It contradicts what I thought was
the case (assuming you meant the members of *obj).
{
char *name;
} EMPLOYEE;
const char *getname(const EMPLOYEE *employee)
{
strcpy(employee->name, "Fred");
return employee->name;
}