Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
21 lines
565 B
C
21 lines
565 B
C
// Copyright (C) 2005-2023 Mark A Lindner, ckie
|
|
// SPDX-License-Identifier: LGPL-2.1-or-later
|
|
#include <stdio.h>
|
|
#include <libconfig.h>
|
|
int main(int argc, char **argv)
|
|
{
|
|
config_t cfg;
|
|
config_init(&cfg);
|
|
if (argc != 2)
|
|
{
|
|
fprintf(stderr, "USAGE: validator <path-to-validate>");
|
|
}
|
|
if(! config_read_file(&cfg, argv[1]))
|
|
{
|
|
fprintf(stderr, "[libconfig] %s:%d - %s\n", config_error_file(&cfg),
|
|
config_error_line(&cfg), config_error_text(&cfg));
|
|
config_destroy(&cfg);
|
|
return 1;
|
|
}
|
|
printf("[libconfig] validation ok\n");
|
|
} |