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