Created
January 12, 2018 18:26
-
-
Save ethagnawl/500d4eaa7c7db85dc82df07b140e647a to your computer and use it in GitHub Desktop.
print array of strings in c
This file contains 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
void print_words(char **words) { | |
for (; *words; words++) { | |
char *word = *words; | |
while (*word) { | |
putchar(*word++); | |
} | |
putchar('\n'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment