mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-04-11 10:45:13 +02:00
19 lines
348 B
C
19 lines
348 B
C
#ifndef PATH_HELPER_H
|
|
#define PATH_HELPER_H
|
|
|
|
#include <libgen.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <stdio.h>
|
|
#include <errno.h>
|
|
|
|
|
|
/* returns <current source directory>/<relpath> written to <dest> */
|
|
void cat_sourcedir_with_relpath(char *dest, const char *relpath)
|
|
{
|
|
strcpy(dest, TEST_SOURCE_DIR);
|
|
strcat(dest, relpath);
|
|
}
|
|
|
|
#endif
|