1*cdc9ddc6Sstephan /* 2*cdc9ddc6Sstephan ** 2022-10-16 3*cdc9ddc6Sstephan ** 4*cdc9ddc6Sstephan ** The author disclaims copyright to this source code. In place of a 5*cdc9ddc6Sstephan ** legal notice, here is a blessing: 6*cdc9ddc6Sstephan ** 7*cdc9ddc6Sstephan ** * May you do good and not evil. 8*cdc9ddc6Sstephan ** * May you find forgiveness for yourself and forgive others. 9*cdc9ddc6Sstephan ** * May you share freely, never taking more than you give. 10*cdc9ddc6Sstephan ** 11*cdc9ddc6Sstephan ************************************************************************* 12*cdc9ddc6Sstephan ** This file simply outputs sqlite3 version information in JSON form, 13*cdc9ddc6Sstephan ** intended for embedding in the sqlite3 JS API build. 14*cdc9ddc6Sstephan */ 15*cdc9ddc6Sstephan #include <stdio.h> 16*cdc9ddc6Sstephan #include "sqlite3.h" 17*cdc9ddc6Sstephan int main(int argc, char const * const * argv){ 18*cdc9ddc6Sstephan if(argc || argv){/*unused*/} 19*cdc9ddc6Sstephan printf("{\"libVersion\": \"%s\", " 20*cdc9ddc6Sstephan "\"libVersionNumber\": %d, " 21*cdc9ddc6Sstephan "\"sourceId\": \"%s\"}"/*missing newline is intentional*/, 22*cdc9ddc6Sstephan SQLITE_VERSION, 23*cdc9ddc6Sstephan SQLITE_VERSION_NUMBER, 24*cdc9ddc6Sstephan SQLITE_SOURCE_ID); 25*cdc9ddc6Sstephan return 0; 26*cdc9ddc6Sstephan } 27