libsdfio 1.0.0
Reader and writer for ISO 25178-71 SDF surface data files in C
Loading...
Searching...
No Matches
trailer.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026 Thomas Ascher <thomas.ascher@gmx.at>
3 *
4 * SPDX-License-Identifier: MIT
5 */
6
11
12#ifndef SDFIO_TRAILER_H
13#define SDFIO_TRAILER_H
14
15#include <sdfio/sdfio_export.h>
16
17#include <stdbool.h>
18#include <stddef.h>
19
20#ifdef __cplusplus
21extern "C"
22{
23#endif
24
50SDFIO_API bool sdfio_trailer_next_field(const char *text, size_t size,
51 size_t *position, size_t *name_at,
52 size_t *name_size, size_t *value_at,
53 size_t *value_size);
54
70SDFIO_API bool sdfio_trailer_find_field(const char *text, size_t size,
71 const char *name, size_t *value_at,
72 size_t *value_size);
73
74#ifdef __cplusplus
75}
76#endif
77
78#endif /* SDFIO_TRAILER_H */
bool sdfio_trailer_find_field(const char *text, size_t size, const char *name, size_t *value_at, size_t *value_size)
Finds the value of the field of a name in a trailer text.
bool sdfio_trailer_next_field(const char *text, size_t size, size_t *position, size_t *name_at, size_t *name_size, size_t *value_at, size_t *value_size)
Finds the next field of a trailer text, a line of the form Name = Value, which ISO-2....