Routines in Publ_rtn.c

The file contains the following routines:


TRANS_PUBL: Routine to translate a publisher name

/************************************************************************/
/*																		*/
/*    TRANS_PUBL - Translate publisher name								*/
/*																		*/
/*    Calling Format:													*/
/*																		*/
/*		status = TRANS_PUBL (publisher, uspubl_ptr, abbpubl_ptr,		*/
/*							 prtfil_ptr);								*/
/*																		*/
/*    Where:															*/
/*																		*/
/*		status      = PSP_TRUE if published matched						*/
/*				    = PSP_FALSE otherwise								*/
/*		publisher   = Buffer containing old publisher name				*/
/*		uspubl_ptr  = Buffer to hold pointer to US version of name		*/
/*				    = NULL if no such pointer is required.				*/
/*				    = set to NULL if name same as input name			*/
/*		abbpubl_ptr = Buffer to hold pointer to abbreviation for name	*/
/*				    = NULL if no such pointer is required.				*/
/*				    = set to NULL if name same as input name			*/
/*		prtfil_ptr  = Pointer to diagnostics file handle				*/
/*																		*/
/*    This routine checks the publisher array to see if the publisher	*/
/*    needs to be translated when converting a UK data file to US		*/
/*    format and/or has a recognised abbreviation.  For the former it	*/
/*    also checks for "The " at the start of the publisher name and		*/
/*    moves it to the end (if there is room).							*/
/*																		*/
/************************************************************************/

TRANS_USPUBL: Routine to translate a US publisher name

/************************************************************************/
/*																		*/
/*    TRANS_USPUBL - Translate publisher name from US to UK format		*/
/*																		*/
/*    Calling Format:													*/
/*																		*/
/*		status = TRANS_PUBL (publisher, ukpubl_ptr, prtfil_ptr);		*/
/*																		*/
/*    Where:															*/
/*																		*/
/*		status      = PSP_TRUE if published matched						*/
/*				    = PSP_FALSE otherwise								*/
/*		publisher   = Buffer containing old publisher name				*/
/*		uspubl_ptr  = Buffer to hold pointer to UK version of name		*/
/*				    = set to NULL if name same as input name			*/
/*		prtfil_ptr  = Pointer to diagnostics file handle				*/
/*																		*/
/*    This routine checks the publisher array to see if the publisher	*/
/*    needs to be translated when converting from US to UK format.		*/
/*																		*/
/************************************************************************/