salut,jai lancé le debbugage et il bugge au niveau spécifié en bleu.
void GetAvailablePorts(char *** sAvailComPorts, short * iAvailComPorts);
/*Declare the variable g to hold all global variables*/
struct GlobalVariables * g;
void main()
{
char ** sAvailComPorts; /*Variable to hold the array of COM ports*/
short iAvailComPorts; /*
Variable to hold the number of elements
in sAvailComPorts
*/
short iPortIndex; /*Variable for use in a for-loop*/
/*Construct global variables*/
g = (struct GlobalVariables *) malloc(sizeof(struct GlobalVariables));
ConstructGlobalVariables(g);
/*
Get the list of available com ports on which communication can
be opened..
*/
GetAvailablePorts(&sAvailComPorts, &iAvailComPorts);
printf(
"%s%s%s%s",
"Welcome to BHTFlowbusExamples V1.00\n",