C:
if(!strcmp(type,"exte"))
{
printf("extern");
printf("numOfLabel%d",numOfLabel);
if(numOfLabel==0)
{
la = (label*)malloc(sizeof(label));
}
else
{
la = (label*)realloc(la,(numOfLabel+1)*sizeof(label));
}
if(la != NULL)
{
printf("Put in 1");
i=skeepSpace(line,i+7);
nameLabel = findNameLabel(line,i,' ');
/*till here works fine*/
printf("namelllllll:%s",nameLabel);
la[numOfLabel].address = 0;
strcpy(la[numOfLabel].name,nameLabel);
la[numOfLabel].external = true;
numOfLabel++;
printf("Put in");
}
else
{
printf("eror! could not find more room!\n");
exit(0);
}
return;
}
(תתעלמו מכל ההדפסות וההערות)