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() 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++ #include <stdio.h> #include <lid.h> int main(int argc, char *argv[]) { lid_t *res = NULL; const char *s = "This is a short English sentence."; res = lid_fstr(s); /* Check for errors here */ if (res) { printf("'%s' -> %s\n", s, res->language); lid_free(res); } return 0; }
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)
COPYRIGHT
Copyright (c) 2008-2011 Lingua-Systems Software GmbH


