/
githubmirror
/
libcbor
Обзор
Документация
Войти
/
githubmirror
/
libcbor
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v0.9.0
examples/hello.c
16 строк
536 B
Pavel Kalvoda
Fix unused args in tests
19 окт 2020, 23:29
Не верифицирован
19 окт 2020, 23:29
adc7eb5
Код
Авторство
О чём код?
/* * Copyright (c) 2014-2020 Pavel Kalvoda <me@pavelkalvoda.com> * * libcbor is free software; you can redistribute it and/or modify * it under the terms of the MIT license. See LICENSE for details. */ #include <stdio.h> #include "cbor.h" int main() { printf("Hello from libcbor %s\n", CBOR_VERSION); printf("Custom allocation support: %s\n", CBOR_CUSTOM_ALLOC ? "yes" : "no"); printf("Pretty-printer support: %s\n", CBOR_PRETTY_PRINTER ? "yes" : "no"); printf("Buffer growth factor: %f\n", (float)CBOR_BUFFER_GROWTH); }