GRU - Generic Reusable Utilities
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_base_app_home
gru_export const char * gru_base_app_home(const char *appname)
Returns the base directory for the application given an application name For Unix-like,...
Definition:
gru_base.c:25
gru_portable.h
gru_export
#define gru_export
Definition:
gru_portable.h:19
Generated by
1.9.1