예제 #1
0
static FILE* getTempFile() {
    char path[1024];
    snprintf(path, 1023, "/sdcard/.%d.tmp", getpid());
    FILE * fd = getTempFileFromPath(path);
    if (fd == NULL) {
        // anywhere else we can create a temp file?
		//	    snprintf(path, 1023, "/data/data/.%d.tmp", getpid());
		//      fd = getTempFileFromPath(path);
    }
    return fd;
}
예제 #2
0
static FILE* getTempFile() {
    char path[1024];
    snprintf(path, 1023, "/sdcard/.%d.tmp", getpid());
    FILE * fd = getTempFileFromPath(path);
    if (fd == NULL) {
        
		
		
    }
    return fd;
}