Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <windows.h>
- void process(char *arg)
- {
- printf("Arg is %s\n", arg);
- }
- void foo(char *arg)
- {
- char buf[14];
- strcpy(buf, arg);
- process(arg);
- }
- int main(int argc, char **argv)
- {
- if (argc > 1)
- foo(argv[1]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement