MCPcopy Create free account
hub / github.com/MariaDB/server / PROFILE_Save

Function PROFILE_Save

storage/connect/inihandl.cpp:183–206  ·  view source on GitHub ↗

* PROFILE_Save * * Save a profile tree to a file. ***********************************************************************/

Source from the content-addressed store, hash-verified

181 * Save a profile tree to a file.
182 ***********************************************************************/
183static void PROFILE_Save( FILE *file, PROFILESECTION *section )
184{
185 PROFILEKEY *key;
186 int secno;
187
188 for (secno= 0; section; section= section->next) {
189 if (section->name[0]) {
190 fprintf(file, "%s[%s]\n", secno ? "\n" : "", SVP(section->name));
191 secno++;
192 }
193
194 for (key = section->key; key; key = key->next) {
195 if (key->name[0]) {
196 fprintf(file, "%s", SVP(key->name));
197
198 if (key->value)
199 fprintf(file, "=%s", SVP(key->value));
200
201 fprintf(file, "\n");
202 } // endif key->name
203 }
204 } // endfor section
205
206} // end of PROFILE_Save
207
208
209/***********************************************************************

Callers 1

PROFILE_FlushFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected