目前分類:programming (7)

瀏覽方式: 標題列表 簡短摘要
What is memory leak ?

wiki said:


tttt 發表在 痞客邦 留言(0) 人氣()

Memory Allocation: "g_new()

#define g_new(struct_type, n_structs)

Allocates n_structs elements of type struct_type. The returned pointer is cast to a pointer to the given type. If n_structs is 0 it returns NULL.

tttt 發表在 痞客邦 留言(0) 人氣()

Doubly-Linked Lists: "GList

typedef struct {
gpointer data;
GList *next;

tttt 發表在 痞客邦 留言(0) 人氣()

Spawning Processes: "g_spawn_async_with_pipes ()

gboolean g_spawn_async_with_pipes (const gchar *working_directory,
gchar **argv,
gchar **envp,

tttt 發表在 痞客邦 留言(0) 人氣()

Shell-related Utilities: "g_shell_parse_argv ()

gboolean g_shell_parse_argv (const gchar *command_line,
gint *argcp,
gchar ***argvp,

tttt 發表在 痞客邦 留言(0) 人氣()

Memory Allocation: "g_new0()

#define g_new0(struct_type, n_structs)

Allocates n_structs elements of type struct_type, initialized to 0's. The returned pointer is cast to a pointer to the given type. If n_structs is 0 it returns NULL.

tttt 發表在 痞客邦 留言(0) 人氣()


In computer programming, a callback is executable code that is passed as an argument to other code. It allows a lower-level software layer to call a subroutine (or function) defined in a higher-level layer.

所謂callback function就是等著被呼叫的function 通常會使用在interrupt handler(中斷處理), 或一些event handler(事件處理)

tttt 發表在 痞客邦 留言(1) 人氣()