projects
/
pintos-anon
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Clarify that adding code where interrupts are already disabled may be
[pintos-anon]
/
src
/
tests
/
userprog
/
args.c
1
#include "tests/lib.h"
2
3
int
4
main (int argc, char *argv[])
5
{
6
int i;
7
8
test_name = "args";
9
10
msg ("begin");
11
msg ("argc = %d", argc);
12
for (i = 0; i <= argc; i++)
13
if (argv[i] != NULL)
14
msg ("argv[%d] = '%s'", i, argv[i]);
15
else
16
msg ("argv[%d] = null", i);
17
msg ("end");
18
19
return 0;
20
}