Skip to content
Myr

fix readme linebreaks

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sean Barrett · committed by Sean Barrett · parent e140649 · Browse files · 2 files+171 added−171 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+171 added−171 removed

  • other:+171 added−171 removed

2 files+171 added−171 removed

modified:tools/make_readme.c+6 added-6 removed
7 unmodified lines
8 char *header = stb_file("README.header.md", &hlen); // stb_file - read file into malloc()ed buffer9 char *footer = stb_file("README.footer.md", &flen); // stb_file - read file into malloc()ed buffer10 char **list = stb_stringfile("README.list", &listlen); // stb_stringfile - read file lines into malloced array of strings1112 FILE *f = fopen("../README.md", "w");12 FILE *f = fopen("../README.md", "wb");1314 fprintf(f, "<!--- THIS FILE IS AUTOMATICALLY GENERATED, DO NOT CHANGE IT BY HAND --->\n\n");14 fprintf(f, "<!--- THIS FILE IS AUTOMATICALLY GENERATED, DO NOT CHANGE IT BY HAND --->\r\n\r\n");15 fwrite(header, 1, hlen, f);1617 for (i=0; i < listlen; ++i) {18 int num,j;
30 unmodified lines
49 fprintf(f, " | %d", num_lines);50 total_lines += num_lines;51 for (j=2; j < num; ++j)52 fprintf(f, " | %s", tokens[j]);53 fprintf(f, "\n");53 fprintf(f, "\r\n");54 }5556 fprintf(f, "\n");57 fprintf(f, "Total libraries: %d \n", listlen);58 fprintf(f, "Total lines of C code: %d\n\n", total_lines);56 fprintf(f, "\r\n");57 fprintf(f, "Total libraries: %d\r\n", listlen);58 fprintf(f, "Total lines of C code: %d\r\n\r\n", total_lines);5960 fwrite(footer, 1, flen, f);61 fclose(f);62
2 unmodified lines
modified:README.md+165 added-165 removed