MCPcopy Create free account
hub / github.com/audacity/audacity / print_box_line

Function print_box_line

lib-src/sqlite/shell.c:13155–13166  ·  view source on GitHub ↗

Draw horizontal line N characters long using unicode box ** characters */

Source from the content-addressed store, hash-verified

13153** characters
13154*/
13155static void print_box_line(FILE *out, int N){
13156 const char zDash[] =
13157 BOX_24 BOX_24 BOX_24 BOX_24 BOX_24 BOX_24 BOX_24 BOX_24 BOX_24 BOX_24
13158 BOX_24 BOX_24 BOX_24 BOX_24 BOX_24 BOX_24 BOX_24 BOX_24 BOX_24 BOX_24;
13159 const int nDash = sizeof(zDash) - 1;
13160 N *= 3;
13161 while( N>nDash ){
13162 utf8_printf(out, zDash);
13163 N -= nDash;
13164 }
13165 utf8_printf(out, "%.*s", N, zDash);
13166}
13167
13168/*
13169** Draw a horizontal separator for a MODE_Box table.

Callers 1

print_box_row_separatorFunction · 0.85

Calls 1

utf8_printfFunction · 0.85

Tested by

no test coverage detected