xref: /freebsd/contrib/libcbor/examples/hello.c (revision 81b22a98)
1 /*
2  * Copyright (c) 2014-2020 Pavel Kalvoda <me@pavelkalvoda.com>
3  *
4  * libcbor is free software; you can redistribute it and/or modify
5  * it under the terms of the MIT license. See LICENSE for details.
6  */
7 
8 #include <stdio.h>
9 #include "cbor.h"
10 
11 int main(int argc, char* argv[]) {
12   printf("Hello from libcbor %s\n", CBOR_VERSION);
13   printf("Custom allocation support: %s\n", CBOR_CUSTOM_ALLOC ? "yes" : "no");
14   printf("Pretty-printer support: %s\n", CBOR_PRETTY_PRINTER ? "yes" : "no");
15   printf("Buffer growth factor: %f\n", (float)CBOR_BUFFER_GROWTH);
16 }
17