xref: /freebsd/contrib/libcbor/examples/hello.c (revision 089104e0e01f080c9cd45dc5f34c4f636dea4ca7)
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(void) {
12   printf("Hello from libcbor %s\n", CBOR_VERSION);
13   printf("Pretty-printer support: %s\n", CBOR_PRETTY_PRINTER ? "yes" : "no");
14   printf("Buffer growth factor: %f\n", (float)CBOR_BUFFER_GROWTH);
15 }
16