editorconfig_handle.h(3)
π editorconfig_handle.h β the header of the EditorConfig handle π
okay bestie, so this is a Library Functions Manual page, and its whole personality is editorconfig_handle.h: the header file of the EditorConfig handle. it's C, it's a handle, it's giving "pointer to a thing you don't need to know the guts of." periodt.
πΈ NAME πΈ
editorconfig_handle.h β Header file of EditorConfig handle. literally that's it, that's the whole name section π«Ά
β¨ SYNOPSIS β¨
π Typedefs
typedef void * editorconfig_handleβ The editorconfig handle object type. yes it's avoid *, no you may not peek inside, mind your business π
π¦ Functions
editorconfig_handle editorconfig_handle_init (void)β Create and initialize a defaulteditorconfig_handleobject.int editorconfig_handle_destroy (editorconfig_handle h)β Destroy aneditorconfig_handleobject.const char * editorconfig_handle_get_err_file (editorconfig_handle h)β Get theerr_filefield of aneditorconfig_handleobject.void editorconfig_handle_get_version (const editorconfig_handle h, int *major, int *minor, int *patch)β Get the version fields of aneditorconfig_handleobject.void editorconfig_handle_set_version (const editorconfig_handle h, int major, int minor, int patch)β Set the version fields of aneditorconfig_handleobject.void editorconfig_handle_set_conf_file_name (editorconfig_handle h, const char *conf_file_name)β Set theconf_file_namefield of aneditorconfig_handleobject.const char * editorconfig_handle_get_conf_file_name (const editorconfig_handle h)β Get theconf_file_namefield of aneditorconfig_handleobject.void editorconfig_handle_get_name_value (const editorconfig_handle h, int n, const char **name, const char **value)β Get the nth name and value fields of aneditorconfig_handleobject.int editorconfig_handle_get_name_value_count (const editorconfig_handle h)β Get the count of name and value fields of aneditorconfig_handleobject.
π Detailed Description π
Header file of EditorConfig handle. that's the vibe. that's the whole vibe check β
π Author
EditorConfig Team β the icons who made this happen, no cap π
π Function Documentation π
okay so this part is alphabetical-by-function and lowkey chaotic, so we're going in the exact order the page gives. buckle up bestie π
π int editorconfig_handle_destroy (editorconfig_handle h)
Destroy an editorconfig_handle object. rip little handle, you did amazing sweetie π
Parameters
hβ Theeditorconfig_handleobject needs to be destroyed.
Return values
zeroβ Theeditorconfig_handleobject is destroyed successfully.non-zeroβ Failed to destroy theeditorconfig_handleobject.
π§ const char * editorconfig_handle_get_conf_file_name (const editorconfig_handle h)
Get the conf_file_name field of an editorconfig_handle object.
Parameters
hβ Theeditorconfig_handleobject whoseconf_file_namefield needs to be obtained.
Returns
The value of the conf_file_name field of the editorconfig_handle object.
πΈ const char * editorconfig_handle_get_err_file (editorconfig_handle h)
Get the err_file field of an editorconfig_handle object. this is the "who snitched on the parse error" field, iykyk π
Parameters
hβ Theeditorconfig_handleobject whoseerr_fileneeds to be obtained.
Return values
NULLβ No error file exists.non-NULLβ The pointer to the path of the file caused the parsing error is returned.
π void editorconfig_handle_get_name_value (const editorconfig_handle h, int n, const char ** name, const char ** value)
Get the nth name and value fields of an editorconfig_handle object.
Parameters
hβ Theeditorconfig_handleobject whose name and value fields need to be obtained.nβ The zero-based index of the name and value fields to be obtained. (zero-based!! do NOT forget, bestie, that's a classic π)nameβ If not null,*namewill be set to point to the obtained name.valueβ If not null,*valuewill be set to point to the obtained value.
Returns
None. literally nothing. you get your info through the pointers, that's the whole bit β¨
π¦ int editorconfig_handle_get_name_value_count (const editorconfig_handle h)
Get the count of name and value fields of an editorconfig_handle object.
Parameters
hβ Theeditorconfig_handleobject whose count of name and value fields need to be obtained.
Returns
the count of name and value fields of the editorconfig_handle object. number go up, you know how many you got π₯
β void editorconfig_handle_get_version (const editorconfig_handle h, int * major, int * minor, int * patch)
Get the version fields of an editorconfig_handle object.
Parameters
hβ Theeditorconfig_handleobject whose version field need to be obtained.majorβ If not null, the integer pointed bymajorwill be filled with the major version field of theeditorconfig_handleobject.minorβ If not null, the integer pointed byminorwill be filled with the minor version field of theeditorconfig_handleobject.patchβ If not null, the integer pointed bypatchwill be filled with the patch version field of theeditorconfig_handleobject.
Returns
None. all three come back through the pointers, so pass real ints or it's on you π
π editorconfig_handle editorconfig_handle_init (void )
Create and initialize a default editorconfig_handle object. this is the birth of a handle, main character origin story fr fr π
Return values
NULLβ Failed to create theeditorconfig_handleobject.non-NULLβ The creatededitorconfig_handleobject is returned.
always check for NULL before you go using it, bestie. that's not extra, that's self care π
π void editorconfig_handle_set_conf_file_name (editorconfig_handle h, const char * conf_file_name)
Set the conf_file_name field of an editorconfig_handle object.
Parameters
hβ Theeditorconfig_handleobject whoseconf_file_namefield needs to be set.conf_file_nameβ The new value of theconf_file_namefield of theeditorconfig_handleobject.
Returns
None.
π void editorconfig_handle_set_version (const editorconfig_handle h, int major, int minor, int patch)
Set the version fields of an editorconfig_handle object.
Parameters
hβ Theeditorconfig_handleobject whose version fields need to be set.majorβ If not less than0, the major version field will be set tomajor. If this parameter is less than0, the major version field of theeditorconfig_handleobject will remain unchanged.minorβ If not less than0, the minor version field will be set tominor. If this parameter is less than0, the minor version field of theeditorconfig_handleobject will remain unchanged.patchβ If not less than0, the patch version field will be set topatch. If this parameter is less than0, the patch version field of theeditorconfig_handleobject will remain unchanged.
Returns
None.
the negative-number thing is the cute part: pass a value below 0 and that field just stays exactly how it was, untouched, unbothered, living its truth β¨
π Author π
Generated automatically by Doxygen for EditorConfig from the source code. yes bestie, a robot wrote the scaffolding, but the vibe? immaculate. iconic. no notes π«Ά
so that's the whole page!! every function, every parameter, every NULL and non-NULL and zero and non-zero, all accounted for, nothing skipped, we ate and left zero crumbs π
this was editorconfig_handle.h, section 3 of the Library Functions Manual, coming to you from the EditorConfig source β and the footer is just plain EditorConfig with the page name and no date on it, which is honestly a little mysterious of it, but we respect the mystery π stay parsed, bestie πβ¨ππ¦πΈπ
π¦ where this page comes from
- arch rolling: editorconfig-core-c 0.12.11-1 Β· BSD-3-Clause
- fedora 43: editorconfig-libs 0.12.11-1.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-1-Clause
- fedora 43: editorconfig-libs 0.12.11-1.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-1-Clause
- fedora 44: editorconfig-libs 0.12.10-1.fc44 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-1-Clause
- fedora 44: editorconfig-libs 0.12.10-1.fc44 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-1-Clause
- fedora 44: editorconfig-libs 0.12.11-1.fc44 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-1-Clause
- fedora 44: editorconfig-libs 0.12.11-1.fc44 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-1-Clause
- nixos 26.05: editorconfig-core-c 0.12.11
- nixpkgs unstable: editorconfig-core-c 0.12.11
- ubuntu resolute: libeditorconfig-dev 0.12.10+~0.17.1-3ubuntu0.1 Β· BSD-2-Clause
- ubuntu stonking: libeditorconfig-dev 0.12.10+~0.17.1-3ubuntu0.1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms