455 |
i = 0; |
i = 0; |
456 |
} |
} |
457 |
} |
} |
458 |
|
fclose(printcap_file); |
459 |
} |
} |
460 |
|
|
461 |
/* Set first empty element of printer_strings to "ENDLIST" to denote end. |
/* Set first empty element of printer_strings to "ENDLIST" to denote end. |
462 |
If failure in opening printcap_file, then j == 0 */ |
If failure in opening printcap_file, then j == 0 */ |
463 |
strcpy(printer_strings[j], "ENDLIST"); |
strcpy(printer_strings[j], "ENDLIST"); |
464 |
|
|
|
fclose(printcap_file); |
|
|
|
|
465 |
/* Get default printer name if one of the environment |
/* Get default printer name if one of the environment |
466 |
variables LPDEST or PRINTER is set */ |
variables LPDEST or PRINTER is set */ |
467 |
printer_name = getenv("LPDEST"); |
printer_name = getenv("LPDEST"); |