D
Devrobcom
Hi
I know that this is not the Lint forum, but I get some Lint warnings
when setting my pointers to NULL. And the problem is
I don't know howto cast a function ptr the right way.
typedef int FP(char*, char*);
FP *pfp;
pfp = NULL; --error 64: (Error -- Type mismatch (assignment) (ptrs to
void/nonvoid))
I have tried, without success:
pft = (FP*)NULL;
pfp = (int(*)(char*, char*))NULL;
I know that this is not the Lint forum, but I get some Lint warnings
when setting my pointers to NULL. And the problem is
I don't know howto cast a function ptr the right way.
typedef int FP(char*, char*);
FP *pfp;
pfp = NULL; --error 64: (Error -- Type mismatch (assignment) (ptrs to
void/nonvoid))
I have tried, without success:
pft = (FP*)NULL;
pfp = (int(*)(char*, char*))NULL;