1
0
mirror of https://github.com/rd235/cado synced 2024-12-27 14:32:39 +01:00
cado/include/get_scado_file.h
2020-01-08 11:19:54 +01:00

12 lines
295 B
C

#ifndef _GET_SPOOL_FILE_H
#define _GET_SPOOL_FILE_H
#include <limits.h>
#include <cado_paths.h>
/* Get the user scado file */
static inline int get_scado_file(const char *username, char *path) {
return snprintf(path, PATH_MAX, "%s/%s", SPOOL_DIR, username);
}
#endif /* _GET_SPOOL_FILE_H */