/
niceSOFT
/
sqlite
Обзор
Документация
Войти
/
niceSOFT
/
sqlite
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/c/malloc1.c
13 строк
213 B
dan
Update test/c/snprintf1.c to test the result of the sqlite3_snprintf() call. Also add an SQLITE_OMIT_AUTOINIT configuration and update C tests to account for it.
13 апр 2026, 14:20
13 апр 2026, 14:20
dd1e2c3
Код
Авторство
О чём код?
#include "sqlite3.h" #include <stdio.h> int main(void) { void *p = 0; #ifdef SQLITE_OMIT_AUTOINIT sqlite3_initialize(); #endif p = sqlite3_malloc(32); if( !p ) return 1; sqlite3_free(p); return 0; }