Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main(int argc, char **argv)
- {
- if (argc < 2)
- {
- write(1, "\n", 1);
- return 0;
- }
- int run = 0;
- int run1 = 0;
- while (argv[run1 + 1] != '\0')
- run1++;
- while (argv[run1][run] != '\0')
- {
- write(1, &argv[run1][run], 1);
- run++;
- }
- write(1, "\n", 1);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment