Pointer Arrays

2020-11-18  本文已影响0人  崩芭大酱

Pointer Arrays — arrays of pointers to any type of data, which grow automatically as new elements are added

struct GPtrArray {
  gpointer *pdata;
  guint     len;
};

Contains the public fields of a pointer array.
属性:
gpointer pdata points to the array of pointers, which may be moved when the
guint len number of pointers in array

typedef void* gpointer;

An untyped pointer. gpointer looks better and is easier to use than void*.

上一篇下一篇

猜你喜欢

热点阅读