S
suppamax
Hi everybody!
I'm using for the first time PC-Lint.
I'm analysing my C program for Microchip PIC18F
microcontroller.
In particualr I have a problem with library
functions like "memcpy" or "ltoa".
I've included <string.h> and <stdlib.h> in my
files, and I've added their path in my lin.bat file.
But it seems that PC-lint is unable to recognise
them, since I receive the following message
(void)memcpy((void *)&FailureBuffer.date,
(const void *)&g_CurrentTime, sizeof(timestamp_t));
...\source files\app_check.c 292 Info 718: Symbol
'memcpy' undeclared, assumed
to return int
...\source files\app_check.c 292 Info 746: call
to function 'memcpy()' not
made in the presence of a prototype
and
Warning 526: Symbol 'memcpy()' (line 292, file
...\source files\app_check.c) not
defined
...\source files\app_check.c 292 Info 830:
Location cited in prior message
Warning 628: no argument information provided for
function 'memcpy()' (line
292, file ..\source files\app_check.c)
...\source files\app_check.c 292 Info 830:
Location cited in prior message
What can I do?
Thanks,
Max
I'm using for the first time PC-Lint.
I'm analysing my C program for Microchip PIC18F
microcontroller.
In particualr I have a problem with library
functions like "memcpy" or "ltoa".
I've included <string.h> and <stdlib.h> in my
files, and I've added their path in my lin.bat file.
But it seems that PC-lint is unable to recognise
them, since I receive the following message
(void)memcpy((void *)&FailureBuffer.date,
(const void *)&g_CurrentTime, sizeof(timestamp_t));
...\source files\app_check.c 292 Info 718: Symbol
'memcpy' undeclared, assumed
to return int
...\source files\app_check.c 292 Info 746: call
to function 'memcpy()' not
made in the presence of a prototype
and
Warning 526: Symbol 'memcpy()' (line 292, file
...\source files\app_check.c) not
defined
...\source files\app_check.c 292 Info 830:
Location cited in prior message
Warning 628: no argument information provided for
function 'memcpy()' (line
292, file ..\source files\app_check.c)
...\source files\app_check.c 292 Info 830:
Location cited in prior message
What can I do?
Thanks,
Max