HTML_Generator/RB_HTML_Generate_Link [ Functions ]
NAME
RB_HTML_Generate_Link --
SYNOPSIS
void RB_HTML_Generate_Link( FILE *cur_doc, char *cur_name, char *filename, char *labelname, char *linkname, char *classname )
INPUTS
cur_doc -- the file to which the text is written cur_name -- the name of the destination file
(the file from which we link)
filename -- the name of the file that contains the link
(the file we link to)
labelname-- the name of the unique label of the link. linkname -- the name of the link as shown to the user.
SOURCE
{ if ( classname ) { fprintf( cur_doc, "<a class=\"%s\" ", classname ); } else { fprintf( cur_doc, "<a " ); } if ( filename && strcmp( filename, cur_name ) ) { char *r = RB_HTML_RelativeAddress( cur_name, filename ); fprintf( cur_doc, "href=\"%s#%s\">", r, labelname ); RB_HTML_Generate_String( cur_doc, linkname ); fprintf( cur_doc, "</a>" ); } else { fprintf( cur_doc, "href=\"#%s\">", labelname ); RB_HTML_Generate_String( cur_doc, linkname ); fprintf( cur_doc, "</a>" ); } }