URL
https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 21 |
Rev 163 |
Line 490... |
Line 490... |
/* We're all done with the file now. */
|
/* We're all done with the file now. */
|
fclose (f);
|
fclose (f);
|
}
|
}
|
}
|
}
|
|
|
|
/*
|
|
|
|
@deftypefn Extension int countargv (char **@var{argv})
|
|
|
|
Return the number of elements in @var{argv}.
|
|
Returns zero if @var{argv} is NULL.
|
|
|
|
@end deftypefn
|
|
|
|
*/
|
|
|
|
int
|
|
countargv (char **argv)
|
|
{
|
|
int argc;
|
|
|
|
if (argv == NULL)
|
|
return 0;
|
|
for (argc = 0; argv[argc] != NULL; argc++)
|
|
continue;
|
|
return argc;
|
|
}
|
|
|
#ifdef MAIN
|
#ifdef MAIN
|
|
|
/* Simple little test driver. */
|
/* Simple little test driver. */
|
|
|
static const char *const tests[] =
|
static const char *const tests[] =
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.