add -a option
This commit is contained in:
parent
ac22069e2b
commit
ec4b07e522
4
mm/mm.c
4
mm/mm.c
@ -27,6 +27,7 @@ static char *program_name = "<no argv[0]>";
|
||||
static char *stdin_name = "<stdin>";
|
||||
static char *stdout_name = "<stdout>";
|
||||
static char *stderr_name = "<stderr>";
|
||||
static char *amode = "ab";
|
||||
static char *rmode = "rb";
|
||||
static char *wmode = "rb+";
|
||||
static char *wharsh = "wb";
|
||||
@ -273,6 +274,9 @@ int main(int argc, char *argv[]){
|
||||
|
||||
while((c = getopt(argc, argv, "ehi:o:u")) != -1)
|
||||
switch(c){
|
||||
case 'a':
|
||||
io[1].fmode = amode;
|
||||
break;
|
||||
case 'e':
|
||||
Io_fappend(&io[1], stderr, stderr_name);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user