list_config_entries - Online Linux Manual PageSection : 3
Updated : version 4.4.3
Source : Allegro
Note : Allegro manual

NAMElist_config_entries − Lists the names of all entries in a config section Allegro game programming library.​

SYNOPSIS#include <allegro.h> int list_config_entries(const char *section, const char ***names);

DESCRIPTIONThis function can be used to get a list of all entries in the given config section. The names parameter is a pointer to an array of strings. If it points to a NULL pointer, the list will be allocated, else it will be re-allocated. You should free the list again with free_config_entries if you don't need it anymore, or you can pass it again to list_config_entries and the memory will be re-used. See the following example for how you can use it, it will print out the complete contents of the current configuration: int i, n; char const **sections = NULL; char const **entries = NULL; /* List all entries not in any section. */ n = list_config_entries(NULL, &entries); for (i = 0; i printf(" %s=\"%s\\"\\n", entries[i], get_config_string( NULL, entries[i], "-")); /* List all sections (and entries in them). */ n = list_config_sections(§ions); /* loop through all section names */ for (i = 0; i { int j, m; printf("%s\n", sections[i]); m = list_config_entries(sections[i], &entries); /* loop through all entries in the section */ for (j = 0; j { printf(" %s=\"%s\\"\\n", entries[j], get_config_string( sections[i], entries[j], "-")); } } /* It is enough to free the arrays once at the end. */ free_config_entries(§ions); free_config_entries(&entries);

RETURN VALUEReturns the number of valid strings in the names array.

SEE ALSOset_config_file(3), get_config_string(3), list_config_sections(3), free_config_entries(3)
0
Johanes Gumabo
Data Size   :   5,598 byte
man-list_config_entries.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 200,629
Visitor ID   :     :  
Visitor IP   :   18.191.68.112   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (rof_escape_sequence|91|list_config_entries.3|27|\"%s\\"\\n", entries[i], get_config_string(| printf(" %s=\\"%s\\"\\n", entries[i], get_config_string( )         (rof_nr_x|149|list_config_entries.3|36|\n", sections[i]);| printf("%s\\n", sections[i]); )         (rof_escape_sequence|91|list_config_entries.3|41|\"%s\\"\\n", entries[j], get_config_string(| printf(" %s=\\"%s\\"\\n", entries[j], get_config_string( )