John McNamara bd66719cd0 Renamed new_workbook() to workbook_new().
Renamed new_workbook() to workbook_new() and new_workbook_opt() to
workbook_new_opt() for consistency.

The older function names are still availble but deprecated.
2016-01-04 19:48:16 +00:00

21 lines
480 B
C

/*
* A simple Unicode UTF-8 example using libxlsxwriter.
*
* Note: The source file must be UTF-8 encoded.
*
* Copyright 2014-2015, John McNamara, jmcnamara@cpan.org
*
*/
#include "xlsxwriter.h"
int main() {
lxw_workbook *workbook = workbook_new("utf8.xlsx");
lxw_worksheet *worksheet = workbook_add_worksheet(workbook, NULL);
worksheet_write_string(worksheet, 2, 1, "Это фраза на русском!", NULL);
return workbook_close(workbook);
}