to few arguments to function March 31, 2011 10:31PM | Registered: 13 years ago Posts: 16 |
int test(int argc, char **argv) { device = PI_INTERNAL_SD; /* Initialize libfat */ ret = fatInitDefault(); if (ret < 0) { printf("\n[-] FAT Error (ret = %d)\n", ret); goto err; } fflush(stdout); /* Retrieve filelist */ ret = filelist_retrieve(); if (ret < 0) { printf("\n[-] File List Error (ret = %d)\n", ret); goto err; } /* Print filelist */ filelist_print(); loop: /* Clear screen */ Con_Clear(); /* Print filelist */ filelist_print(); /* Controls */ controls(); goto loop; err: /* Restart Wii */ ISFS_Deinitialize(); Restart_Wait(); return 0; }
int test (int argc, char **argv);
Re: to few arguments to function March 31, 2011 10:44PM | Registered: 14 years ago Posts: 379 |
Re: to few arguments to function April 01, 2011 02:34PM | Registered: 13 years ago Posts: 16 |
Re: to few arguments to function April 01, 2011 06:05PM | Registered: 14 years ago Posts: 379 |
Re: to few arguments to function April 02, 2011 08:31AM | Registered: 13 years ago Posts: 16 |
Re: to few arguments to function April 02, 2011 10:43AM | Registered: 14 years ago Posts: 379 |
int test() { return 0; }Declaration:
int test();Calling:
.... test(); ....
Re: to few arguments to function April 02, 2011 10:45AM | Registered: 13 years ago Posts: 99 |
int main(int argc, char **argv) { ... }(or have you found a compiler option thatchanges this?)
int main() { ... }
Re: to few arguments to function April 04, 2011 08:24PM | Registered: 13 years ago Posts: 16 |
Re: to few arguments to function April 05, 2011 12:31AM | Registered: 14 years ago Posts: 379 |
Re: to few arguments to function April 05, 2011 03:37PM | Registered: 13 years ago Posts: 16 |
Re: to few arguments to function April 06, 2011 12:40AM | Registered: 14 years ago Posts: 379 |
Re: to few arguments to function April 08, 2011 11:47AM | Registered: 13 years ago Posts: 16 |
Re: to few arguments to function April 08, 2011 08:51PM | Registered: 14 years ago Posts: 98 |
Re: to few arguments to function April 11, 2011 11:32AM | Registered: 13 years ago Posts: 16 |