-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfa.h
More file actions
30 lines (23 loc) · 696 Bytes
/
fa.h
File metadata and controls
30 lines (23 loc) · 696 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
* fa.h
* qfu
*
* Created by Benjamin Fortin on 7/5/10.
* Copyright 2010 Benjamin Fortin. All rights reserved.
*
*/
#import <Foundation/Foundation.h>
#import "qfu-header.h"
#import "NSString+QFUAdditions.h"
NSArray *arrayWithFilenames(const char *files[], NSRange range)
{
//NSLog(@"%s:%d [%d, %d]", __PRETTY_FUNCTION__, __LINE__, range.location, range.length);
NSMutableArray *arr = [[NSMutableArray alloc] initWithCapacity:range.length-range.location];
for(int i = range.location; i<range.length; i++)
[arr addObject:[NSString stringWithFormat:@"%s", files[i]]];
return [NSArray arrayWithArray:arr];
}
void showUsage()
{
printf("Usage: fa [options] [files]\n");
}