File: hello.c

package info (click to toggle)
libcbor 0.5.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 1,176 kB
  • sloc: ansic: 7,131; makefile: 154; sh: 71; python: 54; ruby: 17; cpp: 6
file content (17 lines) | stat: -rw-r--r-- 556 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * Copyright (c) 2014-2017 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 "cbor.h"
#include <stdio.h>

int main(int argc, char * argv[])
{
	printf("Hello from libcbor %s\n", CBOR_VERSION);
	printf("Custom allocation support: %s\n", CBOR_CUSTOM_ALLOC ? "yes" : "no");
	printf("Pretty-printer support: %s\n", CBOR_PRETTY_PRINTER ? "yes" : "no");
	printf("Buffer growth factor: %f\n", (float) CBOR_BUFFER_GROWTH);
}