xref: /freebsd-src/contrib/libcbor/examples/hello.c (revision 5d3e7166f6a0187fa3f8831b16a06bd9955c21ff)
110ff414cSEd Maste /*
210ff414cSEd Maste  * Copyright (c) 2014-2020 Pavel Kalvoda <me@pavelkalvoda.com>
310ff414cSEd Maste  *
410ff414cSEd Maste  * libcbor is free software; you can redistribute it and/or modify
510ff414cSEd Maste  * it under the terms of the MIT license. See LICENSE for details.
610ff414cSEd Maste  */
710ff414cSEd Maste 
810ff414cSEd Maste #include <stdio.h>
910ff414cSEd Maste #include "cbor.h"
1010ff414cSEd Maste 
main(void)11*5d3e7166SEd Maste int main(void) {
1210ff414cSEd Maste   printf("Hello from libcbor %s\n", CBOR_VERSION);
1310ff414cSEd Maste   printf("Pretty-printer support: %s\n", CBOR_PRETTY_PRINTER ? "yes" : "no");
1410ff414cSEd Maste   printf("Buffer growth factor: %f\n", (float)CBOR_BUFFER_GROWTH);
1510ff414cSEd Maste }
16