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/test/c/malloc1.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 / test / c / malloc1.c` 14 lines ยท 213 bytes Raw Blame History 1 2 #include "sqlite3.h" 3 #include 4 5 int main(void) { 6 void *p = 0; 7 #ifdef SQLITE_OMIT_AUTOINIT 8 sqlite3_initialize(); 9 #endif 10 p = sqlite3_malloc(32); 11 if( !p ) return 1; 12 sqlite3_free(p); 13 return 0; 14 }