Example of adding worksheet headers and footers to worksheets.
#include "xlsxwriter.h"
int main() {
char preview[] = "Select Print Preview to see the header and footer";
char header1[] = "&CHere is some centered text.";
char footer1[] = "&LHere is some left aligned text.";
char header3[] = "&LPage &P of &N" "&CFilename: &F" "&RSheetname: &A";
char footer3[] = "&LCurrent date: &D" "&RCurrent time: &T";
char header4[] = "&C&\"Courier New,Bold\"Hello &\"Arial,Italic\"World";
char footer4[] = "&C&\"Symbol\"e&\"Arial\" = mc&X2";
char header5[] = "&CHeading 1\nHeading 2";
char header6[] = "&CCuriouser && Curiouser - Attorneys at Law";
return 0;
}