opnsense-src/contrib/libcbor/examples/hello.c

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
461 B
C
Raw Normal View History

2021-10-01 19:46:00 -04:00
/*
* Copyright (c) 2014-2020 Pavel Kalvoda <me@pavelkalvoda.com>
*
* libcbor is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See LICENSE for details.
*/
#include <stdio.h>
#include "cbor.h"
2023-04-20 19:17:42 -04:00
int main(void) {
2021-10-01 19:46:00 -04:00
printf("Hello from libcbor %s\n", CBOR_VERSION);
printf("Pretty-printer support: %s\n", CBOR_PRETTY_PRINTER ? "yes" : "no");
printf("Buffer growth factor: %f\n", (float)CBOR_BUFFER_GROWTH);
}