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