Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech> Reviewed-on: https://git.avroid.tech/Conan/conan_build/pulls/10
17 lines
348 B
C
17 lines
348 B
C
#include <libmount/libmount.h>
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
int main()
|
|
{
|
|
struct libmnt_context *ctx = mnt_new_context();
|
|
if (!ctx) {
|
|
printf("failed to initialize libmount\n");
|
|
return EXIT_FAILURE;
|
|
}
|
|
printf("path to fstab: %s", mnt_get_fstab_path());
|
|
mnt_free_context(ctx);
|
|
return EXIT_SUCCESS;
|
|
}
|