Added g_array_length

-Yosh
This commit is contained in:
Manish Singh
1998-07-04 20:39:29 +00:00
parent b7c94a718d
commit 61bccc36a9
10 changed files with 36 additions and 0 deletions

2
glib.h
View File

@@ -891,6 +891,8 @@ void g_string_sprintfa (GString *string,
/* Resizable arrays
*/
#define g_array_length(array,type) \
(((array)->len)/sizeof(type))
#define g_array_append_val(array,type,val) \
g_rarray_append (array, (gpointer) &val, sizeof (type))
#define g_array_append_vals(array,type,vals,nvals) \