Man page of lid_free(3)

Index


NAME

lid_free - free memory used by a lid_t structure

SYNOPSIS

C/C++ #include <lid.h>

 void lid_free(lid_t *res);

DESCRIPTION

lid_free() is a function of convenience that frees all memory used by a lid_t structure pointed to by res.

RETURN VALUE

Like free(3), lid_free returns no value.

EXAMPLES

C/C++ lid_t       *res = NULL;
 const char  *s   = "This is a short English sentence.";

 res = lid_fstr(s);

 /* Check for errors here */

 printf("'%s' -> %s\n", s, res->language);

 lid_free(res);

This example produces the following output when executed:

 'This is a short English sentence.' -> English

SEE ALSO

lid_ffile(3), lid_fstr(3), lid_fwstr(3), lid_fnstr(3)