Using C++ to access Documents folder on iOS

c++, ios

Solution

With code below I able to access cache folder in my app. I think, documents folder in "/Library/Documents", or somewere else.

char *home = getenv("HOME");
char *subdir = "/Library/Caches/subdir";

`home` + `subdir` = full path

Next, with full path, you can do usual things to read/write in C++

Problem

I'm wondering if there is a way to get a reference to the Documents folder on iOS using just C++ (i.e. WITHOUT using ANY code in Objective-C; this because it is a framework implemented only in C++ that can be add as a library in a iOS project). Please, if it is possible, provide code in your answer.

Original source