関数free_sequence_memory マニュアル

(The documentation of function free_sequence_memory)

Last Update: 2023/6/13


◆機能・用途(Purpose)

struct sequence型構造体のメンバvalueの動的メモリを解放する。
Release dynamic memories for member value of a struct sequence-type structure.


◆形式(Format)

#include <sequence/initialize.h>
inline void free_sequence_memory(struct sequence ∗seq)


◆引数(Arguments)

seq 処理対象の構造体のアドレス。 関数内でメンバvalueの配列の動的メモリが解放され、 メンバcheckedに’n’が代入される。
The address of the target structure. Within the function, the dynamic memory for the array of member value of this structure is released, and ’n’ is inserted into member checked.


◆使用例(Example)

struct sequence data=get_sequence_memory(100,0.0,0.01);
free_sequence_memory(&data);