# saveini.c File Reference

`#include <stdio.h>`
`#include <string.h>`
`#include <stdlib.h>`
`#include "const.h"`
`#include "global.h"`
`#include "readini.h"`
`#include "io.h"`
`#include "erreurs.h"`
`#include "divers.h"`

## Functions
int | Sauver_INI_Reach_group (FILE *Old_file, FILE *New_file, char *Buffer, char *Group)
int | Sauver_INI_char_in_value_alphabet (char Char)
void | Sauver_INI_Set_value (char *Destination, char *Source, int Nb_values_to_set, int *Values, int Litteral)
void | Sauver_INI_Set_string (char *Destination, char *Source, char *Value)
int | Sauver_INI_Set_strings (FILE *Old_file, FILE *New_file, char *Buffer, char *Option, char *Value)
int | Sauver_INI_Set_values (FILE *Old_file, FILE *New_file, char *Buffer, char *Option, int Nb_values_to_set, int *Values, int Litteral)
void | Sauver_INI_Flush (FILE *Old_file, FILE *New_file, char *Buffer)
int | Sauver_INI (struct S_Config *Conf)

## Function Documentation

int Sauver_INI_Reach_group | ( | FILE * | Old_file,
|  | FILE * | New_file,
|  | char * | Buffer,
|  | char * | Group |
| ) |  |  |

References Charger_INI_Clear_string(), Charger_INI_Seek_pattern(), ERREUR_INI_CORROMPU, and ERREUR_SAUVEGARDE_INI.

Referenced by Sauver_INI().

int Sauver_INI_char_in_value_alphabet | ( | char | Char | ) |

Referenced by Sauver_INI_Set_string(), and Sauver_INI_Set_value().

void Sauver_INI_Set_value | ( | char * | Destination,
|  | char * | Source,
|  | int | Nb_values_to_set,
|  | int * | Values,
|  | int | Litteral |
| ) |  |  |

References Sauver_INI_char_in_value_alphabet().

Referenced by Sauver_INI_Set_values().

void Sauver_INI_Set_string | ( | char * | Destination,
|  | char * | Source,
|  | char * | Value |
| ) |  |  |

References Sauver_INI_char_in_value_alphabet().

Referenced by Sauver_INI_Set_strings().

int Sauver_INI_Set_strings | ( | FILE * | Old_file,
|  | FILE * | New_file,
|  | char * | Buffer,
|  | char * | Option,
|  | char * | Value |
| ) |  |  |

References Charger_INI_Clear_string(), Charger_INI_Seek_pattern(), ERREUR_INI_CORROMPU, ERREUR_SAUVEGARDE_INI, and Sauver_INI_Set_string().

Referenced by Sauver_INI().

int Sauver_INI_Set_values | ( | FILE * | Old_file,
|  | FILE * | New_file,
|  | char * | Buffer,
|  | char * | Option,
|  | int | Nb_values_to_set,
|  | int * | Values,
|  | int | Litteral |
| ) |  |  |

References Charger_INI_Clear_string(), Charger_INI_Seek_pattern(), ERREUR_INI_CORROMPU, ERREUR_SAUVEGARDE_INI, and Sauver_INI_Set_value().

Referenced by Sauver_INI().

void Sauver_INI_Flush | ( | FILE * | Old_file,
|  | FILE * | New_file,
|  | char * | Buffer |
| ) |  |  |

Referenced by Sauver_INI().

int Sauver_INI | ( | struct S_Config * | Conf | ) |

References S_Config::Adjust_brush_pick, S_Config::Afficher_limites_image, S_Config::Auto_discontinuous, S_Config::Auto_nb_used, S_Config::Auto_save, S_Config::Auto_set_res, S_Config::Backup, S_Config::Bookmark_directory, S_Config::Bookmark_label, S_Config::Chrono_delay, S_Config::Clear_palette, S_Config::Clear_with_stencil, S_Config::Coords_rel, S_Config::Coul_menu_pref, S_Config::Couleurs_separees, S_Config::Curseur, ERREUR_INI_ABSENT, ERREUR_SAUVEGARDE_INI, S_Config::Fast_zoom, Fichier_existe(), S_Config::Find_file_fast, S_Config::Fonte, S_Config::FX_Feedback, S_Mode_video::Hauteur, S_Config::Indice_Sensibilite_souris_X, S_Config::Indice_Sensibilite_souris_Y, S_Mode_video::Largeur, Libelle_mode(), S_Config::Lire_les_fichiers_caches, S_Config::Lire_les_repertoires_caches, S_Config::Maximize_preview, Mode_video, S_Config::Mouse_Facteur_de_correction_X, S_Config::Mouse_Facteur_de_correction_Y, S_Config::Mouse_Merge_movement, NB_BOOKMARKS, S_Config::Nb_max_de_vertex_par_polygon, S_Config::Nb_pages_Undo, S_Config::Opening_message, S_Config::Palette_Cells_X, S_Config::Palette_Cells_Y, S_Config::Ratio, Repertoire_de_configuration, Repertoire_des_donnees, S_Config::Resolution_par_defaut, S_Config::Safety_colors, Sauver_INI_Flush(), Sauver_INI_Reach_group(), Sauver_INI_Set_strings(), Sauver_INI_Set_values(), S_Config::Set_resolution_according_to, TAILLE_CHEMIN_FICHIER, S_Config::Taille_ecran_dans_GIF, S_Config::Valeur_tempo_jauge_droite, and S_Config::Valeur_tempo_jauge_gauche.

Referenced by Fermeture_du_programme(), and Settings_Sauver_config().