libcdirectory(3)
π NAME π
okay bestie, this is the libcdirectory(3) page from the Library Functions Manual, and it's all about libcdirectory.h β the library that supports cross-platform C directory functions. directory chaos, but make it portable π
β¨ SYNOPSIS β¨
include her like this, no cap:
#include <libcdirectory.h>
π οΈ Support functions
const char *
libcdirectory_get_version(void);
int
libcdirectory_get_codepage(int *codepage,
libcdirectory_error_t **error);
int
libcdirectory_set_codepage(int codepage, libcdirectory_error_t **error);
π Error functions
void
libcdirectory_error_free(libcdirectory_error_t **error);
int
libcdirectory_error_fprint(libcdirectory_error_t *error, FILE *stream);
int
libcdirectory_error_sprint(libcdirectory_error_t *error, char *string,
size_t size);
int
libcdirectory_error_backtrace_fprint(libcdirectory_error_t *error,
FILE *stream);
int
libcdirectory_error_backtrace_sprint(libcdirectory_error_t *error,
char *string, size_t size);
ποΈ Directory functions
int
libcdirectory_directory_initialize(libcdirectory_directory_t **directory,
libcdirectory_error_t **error);
int
libcdirectory_directory_free(libcdirectory_directory_t **directory,
libcdirectory_error_t **error);
int
libcdirectory_directory_open(libcdirectory_directory_t *directory,
const char *directory_name, libcdirectory_error_t **error);
int
libcdirectory_directory_close(libcdirectory_directory_t *directory,
libcdirectory_error_t **error);
int
libcdirectory_directory_read_entry(libcdirectory_directory_t *directory,
libcdirectory_directory_entry_t *directory_entry,
libcdirectory_error_t **error);
int
libcdirectory_directory_has_entry(libcdirectory_directory_t *directory,
libcdirectory_directory_entry_t *directory_entry,
const char *entry_name, size_t entry_name_length,
uint8_t entry_type, uint8_t compare_flags,
libcdirectory_error_t **error);
Available when compiled with wide character string support:
int
libcdirectory_directory_open_wide(libcdirectory_directory_t *directory,
const wchar_t *directory_name, libcdirectory_error_t **error);
int
libcdirectory_directory_has_entry_wide(libcdirectory_directory_t *directory,
libcdirectory_directory_entry_t *directory_entry,
const wchar_t *entry_name, size_t entry_name_length,
uint8_t entry_type, uint8_t compare_flags,
libcdirectory_error_t **error);
π§ Directory entry functions
int
libcdirectory_directory_entry_initialize(libcdirectory_directory_entry_t **directory_entry,
libcdirectory_error_t **error);
int
libcdirectory_directory_entry_free(libcdirectory_directory_entry_t **directory_entry,
libcdirectory_error_t **error);
int
libcdirectory_directory_entry_get_type(libcdirectory_directory_entry_t *directory_entry,
uint8_t *type, libcdirectory_error_t **error);
int
libcdirectory_directory_entry_get_name(libcdirectory_directory_entry_t *directory_entry,
char **name, libcdirectory_error_t **error);
Available when compiled with wide character string support:
int
libcdirectory_directory_entry_get_name_wide(libcdirectory_directory_entry_t *directory_entry,
wchar_t **name, libcdirectory_error_t **error);
π¦ DESCRIPTION π¦
So the description is short and sweet: libcdirectory_get_version() is the function you use to retrieve the library version. that's the whole vibe for this section. iconic minimalism β¨
π₯ RETURN VALUES π₯
Most of the functions return NULL or -1 on error, dependent on the return type. For the actual return values, go check "libcdirectory.h" β she has the receipts, fr fr.
πΏ ENVIRONMENT πΏ
None. zero env vars, no secret sauce, nothing to export, bestie.
π FILES π
None. no files listed here, periodt.
π NOTES π
libcdirectorycan be compiled with wide character support (wchar_t). highkey useful if you're doing wide-char things π§- To compile
libcdirectorywith wide character support use:
./configure --enable-wide-character-type=yes
or define: _UNICODE or UNICODE during compilation.
LIBCDIRECTORY_WIDE_CHARACTER_TYPEinlibcdirectory/features.hcan be used to determine iflibcdirectorywas compiled with wide character support. literally the vibe-check flag for wide-char compilation π
π BUGS π
Please report bugs of any kind on the project issue tracker: https://github.com/libyal/libcdirectory/issues β the maintainers want the tea π«Ά
π AUTHOR π
These man pages are generated from "libcdirectory.h". auto-generated and still serving looks, we love to see it π
π COPYRIGHT π
Copyright (C) 2008-2024, Joachim Metz <joachim.metz@gmail.com>.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. read that twice, bestie β NO warranty π
π SEE ALSO π
the libcdirectory.h include file π
Catch you later, bestie β with love from libcdirectory(3), source version libcdirectory, dated February 27, 2019 π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: libcdirectory-devel 20240414-bp160.1.11 Β· GFDL-1.3-or-later AND LGPL-3.0-or-later
- opensuse-leap 16.0: libcdirectory-devel 20240414-bp160.1.11 Β· GFDL-1.3-or-later AND LGPL-3.0-or-later
- opensuse-leap 16.0: libcdirectory-devel 20240414-bp160.1.11 Β· GFDL-1.3-or-later AND LGPL-3.0-or-later
- opensuse-leap 16.0: libcdirectory-devel 20240414-bp160.1.11 Β· GFDL-1.3-or-later AND LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms