Created
July 22, 2015 07:49
-
-
Save sugamasao/231a4a95763b9d6c3f06 to your computer and use it in GitHub Desktop.
C言語の4番目の引数が気になったメモ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<stdio.h> | |
| int main(int argc, const char * argv[], char *envp[], char *apple[]){ | |
| int i = 0; | |
| for (i = 0; i < argc; i++) { | |
| printf("argv[%02d]: [%s]\n", i, argv[i]); | |
| } | |
| for (i = 0; envp[i] != NULL; i++) { | |
| printf("envp[%02d]: [%s]\n", i, envp[i]); | |
| } | |
| for (i = 0; apple[i] != NULL; i++) { | |
| printf("apple[%02d]: [%s]\n", i, apple[i]); | |
| } | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment