0
를 재 할당하기위한 구조체 변수를 지우기 :은 내가 정의한 구조체의 유형을 반환하는 기능이
typedef struct irPulseSet
{
int pulseCount;
int (*pulses)[2];
} irPulseSet;
irPulseSet irReadPulse()
{
irPulseSet outputPulseSet;
//some stuff
return outputPulseSet;
}
하지만 루프의 내부를 호출하고 있습니다 :
while(1)
{
irPulseSet currentlPulseSet = irReadPulse();
//some other stuff here
}
내가 알고 싶은 것은 currentPulseSet
의 설정을 해제하는 것이므로 while 루프의 다음 반복에서 다시 설정할 수 있습니다.
그래서 각 루프 반복 끝에 스택이 꺼지십니까? – user2166351
예, while() 또는 do-while() 표현식에서 사용하려고하면 어떻게됩니까? – this