The following code could be used to call the get_address_of_printer() routine shown above.
char* printer_server; printer_server = get_address_of_printer "thisorgunit/service/printer/colorful", "onc_bsdaddr");