lprint.c
void
lprintAddPrinterURI(
    ipp_t      *request,		// I - IPP request
    const char *printer_name,		// I - Printer name
    char       *resource,		// I - Resource path buffer
    size_t     rsize)			// I - Size of buffer
{
  char	uri[1024];			// printer-uri value


  snprintf(resource, rsize, "/ipp/print/%s", printer_name);
  httpAssembleURI(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, resource);

  ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri);
}
//
// 'lprintAddPrinterURI()' - Add the printer-uri attribute and return a resource path.
//
'lprintAddPrinterURI()' - Add the printer-uri attribute and return a resource path.
' lprintAddPrinterURI () ' - Add the printer - uri attribute and return a resource path .
void
lprintAddPrinterURI(
    ipp_t      *request,		
    const char *printer_name,		
    char       *resource,		
    size_t     rsize)			
{
  char	uri[1024];			
  snprintf(resource, rsize, "/ipp/print/%s", printer_name);
  httpAssembleURI(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, resource);
  ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri);
}
void lprintAddPrinterURI ( ipp_t * request , const char * printer_name , char * resource , size_t rsize ) { char uri [ 1024 ] ; snprintf ( resource , rsize , " " , printer_name ) ; httpAssembleURI ( HTTP_URI_CODING_ALL , uri , sizeof ( uri ) , " " , NULL , " " , 0 , resource ) ; ippAddString ( request , IPP_TAG_OPERATION , IPP_TAG_URI , " " , NULL , uri ) ; }
'lprintAddPrinterURI()' - Add the printer-uri attribute and return a resource path.
' lprintAddPrinterURI () ' - Add the printer - uri attribute and return a resource path .
// I - IPP request // I - Printer name // I - Resource path buffer // I - Size of buffer // printer-uri value