dido1987
Member level 2

When I wants to send data by usb towards the pic 18f4550 a pointer " Buffer " is going to point towards an address memory and to store it then if I want to send data of length different I have to delete the previous data stored in memory I have to try the following commands under Mplab:
Buffer [0] = '\0 ';
also i try this
For (j=0; j < strlen ( Buffer); j ++)
{ The Var [j] =Buffer [j];
Buffer [ j ] = '\0 ';
}
But that did not work, then I made the command
( Buffer) free;
by noting that I added libraries
*include stdio.h >
*include string.h >
*include stdlib.h >
Then the following error show
" MPLINK 4.14, Linker
Copyright ( c ) 2007 Microchip Technology Inc.
Error - could not find definition of symbol ' free ' in line ' C:\Users\Administrateur\Desktop\hid\HID \user.o '.
Errors: 1 "
If somebody can help me and thank you in advance.
Buffer [0] = '\0 ';
also i try this
For (j=0; j < strlen ( Buffer); j ++)
{ The Var [j] =Buffer [j];
Buffer [ j ] = '\0 ';
}
But that did not work, then I made the command
( Buffer) free;
by noting that I added libraries
*include stdio.h >
*include string.h >
*include stdlib.h >
Then the following error show
" MPLINK 4.14, Linker
Copyright ( c ) 2007 Microchip Technology Inc.
Error - could not find definition of symbol ' free ' in line ' C:\Users\Administrateur\Desktop\hid\HID \user.o '.
Errors: 1 "
If somebody can help me and thank you in advance.