関数free_win_data マニュアル

(The documentation of function free_win_data)

Last Update: 2025/7/10


◆機能・用途(Purpose)

struct win_data型構造体の動的メモリを解放する。
Release dynamic memories for a struct win_data-type structure.


◆形式(Format)

#include <win/memory.h>
inline void free_win_data(struct win_data ∗data)


◆引数(Arguments)

data 動的メモリを解放したい構造体のアドレス。
The address of a structure whose dynamic memories have to be released.


◆動作(Behaviour)

引数dataに包含される全ての配列の動的メモリを解放する。 また、配列要素数を表す整数は全て0に設定する。
Release dynamic memories for all arrays included in argument data. All integers that represent the number of array components are set as 0.


◆使用例(Example)

struct win_data data=read_win_file("data.win");
free_win_data(&data);