-
Notifications
You must be signed in to change notification settings - Fork 14
/
Profile.h
32 lines (26 loc) · 1.02 KB
/
Profile.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
* CLCL
*
* Profile.h
*
* Copyright (C) 1996-2019 by Ohno Tomoaki. All rights reserved.
* https://www.nakka.com/
*/
#ifndef _INC_PROFILE_H
#define _INC_PROFILE_H
/* Include Files */
/* Define */
/* Struct */
/* Function Prototypes */
BOOL profile_initialize(const TCHAR *path, const BOOL ReadFlag);
BOOL profile_flush(const TCHAR *path);
void profile_free(void);
long profile_get_string(const TCHAR *section, const TCHAR *key, const TCHAR *default_str, TCHAR *ret, const long size, const TCHAR *file_path);
TCHAR *profile_alloc_string(const TCHAR *section, const TCHAR *key, const TCHAR *default_str, const TCHAR *file_path);
void profile_free_string(TCHAR *buf);
int profile_get_int(const TCHAR *section, const TCHAR *key, const int default_str, const TCHAR *file_path);
BOOL profile_write_string(const TCHAR *section, const TCHAR *key, const TCHAR *str, const TCHAR *file_path);
BOOL profile_write_int(const TCHAR *section, const TCHAR *key, const int num, const TCHAR *file_path);
#endif
/* End of source */