xref: /freebsd/contrib/libcbor/examples/hello.c (revision 257e70f1d5ee61037c8c59b116538d3b6b1427a2)
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