Wendy...we are working on the same program!
But..you are doing it in C...which is great...but not sure if malloc, strcpy are necessarily the methods that non-C are familiar with and within scope of the exercise....
Having said that...I cannot get mine to work.....

..so maybe some help?
Found the error.....don't even ask!!!!
TempFiles.h
#import <Foundation/Foundation.h>
@interface NSString(TempFiles)
+(NSString *) temporaryFileName;
@end
TempFiles.m
#import "TempFiles.h"
@implementation NSString (TempFiles)
+(NSString *) temporaryFileName
{
NSString * tempDir = NSTemporaryDirectory();
NSString * uniqueFileName = [[NSProcessInfo processInfo]globallyUniqueString];
return [tempDir stringByAppendingPathComponent: uniqueFileName];
}
@end
main.m
#import "TempFiles.h"
#define NUM_OF_STRINGS 10
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSMutableArray *myStrings = [[NSMutableArray alloc]init];
NSFileManager *fm = [ NSFileManager defaultManager];
BOOL done = NO;
int x;
for ( x = 0; x < NUM_OF_STRINGS; x ++)
{
[myStrings addObject:[NSString temporaryFileName]];
/* create a file at that location */
done = [fm createFileAtPath:[myStrings lastObject] contents:nil attributes:nil];
if ( !done)
{
NSLog(@"Could not create file");
return 1;
}
}
/* show unique names */
for ( id unique_show in myStrings)
NSLog(@"%@", unique_show);
/*now delete those from temporary folder*/
for ( id unique_delete in myStrings)
{
done = [fm removeFileAtPath: unique_delete handler: nil];
if (!done)
NSLog(@"Did not delete file: %@", unique_delete);
else
NSLog(@"Deleted: %@", unique_delete);
}
[pool drain];
return 0;
}