Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/sqlite/blob/master/ext/wasm/SQLTester/touint8array.c # sqlite [Ported from github.com/sqlite/sqlite] Fix bugs in and improve the interface to the ".check" command of the CLI. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `sqlite / ext / wasm / SQLTester / touint8array.c` 29 lines ยท 784 bytes Raw Blame History 1 /* 2 ** 2023-08-29 3 ** 4 ** The author disclaims copyright to this source code. In place of 5 ** a legal notice, here is a blessing: 6 ** 7 ** May you do good and not evil. 8 ** May you find forgiveness for yourself and forgive others. 9 ** May you share freely, never taking more than you give. 10 ** 11 ************************************************************************* 12 ** This file contains a tool for writing out the contents of stdin as 13 ** a comma-separated list of numbers, one per byte. 14 */ 15 16 #include 17 int main(int argc, char const **argv){ 18 int i; 19 int rc = 0, colWidth = 30; 20 int ch; 21 printf("["); 22 for( i=0; EOF!=(ch = fgetc(stdin)); ++i ){ 23 if( 0!=i ) printf(","); 24 if( i && 0==(i%colWidth) ) puts(""); 25 printf("%d",ch); 26 } 27 printf("]"); 28 return rc; 29 }