Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <math.h>
- #include <stdio.h>
- #include <windows.h>
- int main(int argc, char **argv)
- {
- char * str;
- int repeat = 0;
- char *line = GetCommandLineA();
- while (*line != ' ')
- line++;
- line++;
- if (strncmp(line, "repeat=", 7) == 0)
- {
- line += 7;
- repeat = atoi(line);
- line += (int)ceil(log10((double)repeat)) + 1;
- }
- if (strncmp(line, "str=", 4) == 0)
- {
- line += 4;
- str = line;
- while(*str == ' ')str++;
- }
- for (int i = 0; i < repeat; i++)
- printf("%s\n", str);
- line += strlen(str);
- for (; line >= GetCommandLineA(); line--)
- *line = '\x0';
- return -14;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement