Get user fileID - C API

I’m using C API. I found user in addressBook but i don’t how can I get user’s fileID?

Subject: User ID File

If the ID file is attached to the person document then use the standard C-API coding to get a handle to the attachment and save it to the file system.