@@ -20,14 +20,19 @@ .BR lc_register_var (3) or .BR lc_register_callback (3)) are processed with the .BR lc_process (3) -function. Errors can be examined through +and +.BR lc_process_file (3) +functions. Errors can be examined through .BR lc_geterrno (3) and .BR lc_geterrstr (3). +Clean-up may be performed using the +.BR lc_cleanup (3) +function. .SH EXAMPLE .nf #include #include @@ -46,10 +51,12 @@ return(EXIT_FAILURE); } lc_p_ret = lc_process(argc, argv, "example", LC_CONF_APACHE, NULL); + lc_cleanup(); + if (lc_p_ret != 0) { fprintf(stderr, "Error processing configuration: \\ %s\\n", lc_geterrstr()); return(EXIT_FAILURE); } @@ -67,6 +74,8 @@ .SH "SEE ALSO" .BR lc_register_var (3), .BR lc_register_callback (3), .BR lc_geterr (3), .BR lc_geterrstr (3), -.BR lc_process (3) +.BR lc_cleanup (3), +.BR lc_process (3), +.BR lc_process_file (3)