우선순위큐에서 PQ_Destroy 함수 만들고 왜 쓰질 않죠?
큐는 삽입된 노드가 빠지면 제거되니까 필요없는건가요?
malloc으로 Nodes를 생성했는데
설마 Dequeue에서 realloc 이 free()의 역할을 대신해주는건가요?
물어보니까
C89 4.10.3.4 says "If size is zero and ptr is not a null pointer, the object it points to is freed." The clause has been deleted from C99.
In n1124 7.20.3, which discusses all three allocation functions, it says "If the size of the space requested is zero, the behavior is implementation-defined: either a null pointer is returned, or the behavior is as if the size were some nonzero value, except that the returned pointer shall not be used to access an object.
라고 해서요.