Update comments about old O_NDELAY
[libmodbus.git] / tests / version.c
blob8263b2edf3759f485fdfceb5d30be25e7273ef49
1 /*
2 * Copyright © Stéphane Raimbault <stephane.raimbault@gmail.com>
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
7 #include <modbus.h>
8 #include <stdio.h>
10 int main(void)
12 printf("Compiled with libmodbus version %s (%06X)\n",
13 LIBMODBUS_VERSION_STRING,
14 LIBMODBUS_VERSION_HEX);
15 printf("Linked with libmodbus version %d.%d.%d\n",
16 libmodbus_version_major,
17 libmodbus_version_minor,
18 libmodbus_version_micro);
20 if (LIBMODBUS_VERSION_CHECK(2, 1, 0)) {
21 printf("The functions to read/write float values are available (2.1.0).\n");
24 if (LIBMODBUS_VERSION_CHECK(2, 1, 1)) {
25 printf("Oh gosh, brand new API (2.1.1)!\n");
28 return 0;