server/src/util/path.h
Enno Rehling 4e9b4a35c3 do not use macros for va_copy, which is available from C99 on and with gcc >= 3.0.
this somehow eliminates bogus cppcheck warnings
2018-12-11 19:34:28 +01:00

10 lines
231 B
C

#pragma once
#include <stddef.h>
#ifndef PATH_MAX
/* @see https://insanecoding.blogspot.no/2007/11/pathmax-simply-isnt.html */
#define PATH_MAX 260
#endif
char * path_join(const char *p1, const char *p2, char *dst, size_t len);