指向指针的指针用法

例如有一个方法:

- (int)openFile:(NSString *)path vsFile:(void **)pFile openMode:(int)mode;

调用的时候:

void *vsFile; (前面的void * 要跟方法里面的保持一致)

[self openFile:path vsFile:&vsFile openMode:0];

posted @ 2016-09-22 16:32  第三维  阅读(337)  评论(0编辑  收藏  举报