KDK_PRINTER_FREEALL(3) Library Functions Manual KDK_PRINTER_FREEALL(3) NAME kdk_printer_freeall - , SYNOPSIS #include extern inline void kdk_printer_freeall(char **ptr); Link with -lkyprinter. Detailed Description The main function of the interface is to recycle a list of strings of type char **. The argument ptr is a list of strings of type char **. RETURN VALUE No return value EXAMPLES #include "libkyprinter.h" #include int main() { int index = 0; // char **printers = kdk_printer_get_available_list(); while (printers[index]) { printf("%zd: %s0, index + 1, printers[index]); // kdk_printer_cancel_all_jobs(printers[index]); //url char *url = "http://www.cztouch.com/upfiles/soft/testpdf.pdf"; int res = -1; char *filename = kdk_printer_get_filename(url); ///home/test/abc.txt,abc.txt printf("filename = %s0, filename); // kdk_printer_set_options(2, "A4", "lrtb", "two-sided-long-edge"); // res = kdk_printer_print_download_remote_file(url, filename); printf("[%s] res = %d0, __FUNCTION__, res); printf("[%s] filepath = %s0, __FUNCTION__, filename); // int job_id = kdk_printer_print_local_file(printers[index], filename); if (job_id == 0) { // printf("[%s] create print job fail0, __FUNCTION__); } else { // sleep(10); int status = kdk_printer_get_job_status(printers[index], job_id); } index++; free(filename); } kdk_printer_freeall(printers); return 0; } CONFORMING TO These functions are as per the withdrawn POSIX.1e draft specification. The following functions are Linux extensions: kdk_printer_get_list(), kdk_printer_get_available_list(), kdk_printer_set_options(), kdk_printer_print_download_remote_file(), kdk_printer_print_local_file(), kdk_printer_cancel_all_jobs(), kdk_printer_get_status(), kdk_printer_get_job_status() and kdk_printer_get_filename(). SEE ALSO kdk_printer_get_list(3), kdk_printer_get_available_list(3), kdk_printer_set_options(3), kdk_printer_print_download_remote_file(3), kdk_printer_print_local_file(3), kdk_printer_cancel_all_jobs(3), kdk_printer_get_status(3), kdk_printer_get_job_status(3) and kdk_printer_get_filename(3). Linux Programmer's Manual Fri Aug 25 2023 KDK_PRINTER_FREEALL(3)