GRU - Generic Reusable Utilities
Main Page
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
src
common
gru_base.h
Go to the documentation of this file.
1
16
#ifndef GRU_BASE_H
17
#define GRU_BASE_H
18
19
#include <stdio.h>
20
#include <stdlib.h>
21
22
#if !defined(_WIN32) && !defined(_WIN64)
23
#include <pwd.h>
24
#include <unistd.h>
25
#endif
26
#include <sys/types.h>
27
28
#include "
gru_portable.h
"
29
30
#ifdef __cplusplus
31
extern
"C"
{
32
#endif
33
34
#define GRU_OPT_MAX_STR_SIZE 256
35
#define GRU_OPT_MAX_STR_SIZE_MASK "%256s"
36
#define GRU_OPT_MAX_CHAR_SIZE_MASK "%256c"
37
44
gru_export
const
char
*
gru_base_app_home
(
const
char
*appname);
45
46
#ifdef __cplusplus
47
}
48
#endif
49
50
#endif
/* GRU_BASE_H */
gru_export
#define gru_export
Definition:
gru_portable.h:19
gru_base_app_home
const char * gru_base_app_home(const char *appname)
Returns the base directory for the application given an application name For Unix-like, that would be: $HOME/.appname.
Definition:
gru_base.c:25
gru_portable.h
Generated by
1.8.5