Skip to content

Instantly share code, notes, and snippets.

@kaworu
Created December 4, 2013 11:45
Show Gist options
  • Save kaworu/7786292 to your computer and use it in GitHub Desktop.
Save kaworu/7786292 to your computer and use it in GitHub Desktop.
#include <stdio.h>
char * const lala[] = {
"lala",
"la schtroumpf",
"lala",
};
void
do_something(char * const *array, int s)
{
int i;
for (i = 0; i < s; i++)
printf("%s\n", array[i]);
}
int
main(int argc, char *argv[])
{
do_something(argv, argc);
do_something(lala, sizeof(lala) / sizeof(*lala));
return (0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment