GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
include
utils
gp_path.h
Go to the documentation of this file.
1
//SPDX-License-Identifier: LGPL-2.0-or-later
2
3
/*
4
5
Copyright (c) 2022-2023 Cyril Hrubis <metan@ucw.cz>
6
7
*/
8
14
#ifndef GP_PATH_H
15
#define GP_PATH_H
16
24
char
*
gp_user_home
(
void
);
25
26
char
*gp_compose_path_(
const
char
*dir, ...);
27
38
#define gp_compose_path(dir, ...) gp_compose_path_(dir, ##__VA_ARGS__, NULL);
39
40
enum
gp_mkpath_flags
{
42
GP_MKPATH_HAS_FILE
= 0x01,
43
};
44
57
int
gp_mkpath
(
const
char
*base_path,
const
char
*path,
58
enum
gp_mkpath_flags
flags,
int
mode);
59
68
char
*
gp_dirname
(
const
char
*path);
69
70
#endif
/* GP_PATH_H */
gp_dirname
char * gp_dirname(const char *path)
Returns directory component of a path in a newly allocated buffer.
gp_mkpath_flags
gp_mkpath_flags
Definition
gp_path.h:40
GP_MKPATH_HAS_FILE
@ GP_MKPATH_HAS_FILE
Definition
gp_path.h:42
gp_mkpath
int gp_mkpath(const char *base_path, const char *path, enum gp_mkpath_flags flags, int mode)
Creates a path, if it does not exists.
gp_user_home
char * gp_user_home(void)
Returns a user home directory.
Generated by
1.9.8