Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
glib-autocleanups.h File Reference

Go to the source code of this file.

Functions

static void g_autoptr_cleanup_generic_gfree (void *p)
 
static void g_autoptr_cleanup_gstring_free (GString *string)
 

Function Documentation

◆ g_autoptr_cleanup_generic_gfree()

static void g_autoptr_cleanup_generic_gfree ( void * p)
inlinestatic

Definition at line 29 of file glib-autocleanups.h.

30{
31 void **pp = (void**)p;
32 g_free (*pp);
33}
GLIB_AVAILABLE_IN_ALL void g_free(gpointer mem)

References g_free().

◆ g_autoptr_cleanup_gstring_free()

static void g_autoptr_cleanup_gstring_free ( GString * string)
inlinestatic

Definition at line 36 of file glib-autocleanups.h.

37{
38 if (string)
39 g_string_free (string, TRUE);
40}
#define TRUE
Definition gmacros.h:933
GLIB_AVAILABLE_IN_ALL gchar * g_string_free(GString *string, gboolean free_segment)

References g_string_free(), and TRUE.