appletfiletemps.c

Go to the documentation of this file.
00001 
00002 /*  $Id: appletfiletemps.c 355 2005-01-11 22:48:55Z andreradke $    */
00003 
00004 /* copyright 1991-96 UserLand Software, Inc. All Rights Reserved.*/
00005 
00006 
00007 #include <Folders.h>
00008 #include "applet.h"
00009 #include "appletfilesinternal.h"
00010 #include "appletfiletemps.h"
00011 
00012 
00013 boolean filegettempspec (bigstring fname, FSSpec *fstemp) {
00014     
00015     short vnum;
00016     long dirid;
00017     OSErr ec;
00018     
00019     ec = FindFolder (kOnSystemDisk, kTemporaryFolderType, kCreateFolder, &vnum, &dirid);
00020     
00021     if (fileerror (nil, ec)) 
00022         return (false);
00023     
00024     filemakespec (vnum, dirid, fname, fstemp);
00025     
00026     return (true);
00027     } /*filegettempspec*/
00028 
00029 

Generated on Wed May 31 18:19:41 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6