• Post Reply Bookmark Topic Watch Topic
  • New Topic

Copying arguments in C  RSS feed

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to moved the position of the argument passed in the terminal using a function and a while loop, my problem is that the last argument passed has no place to be copied to, and i want it to be copied to the 1st argument.the code below describes everything

  

  
 
Greenhorn
Posts: 19
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure the code describes everything. Are you expecting 1 or 2 or many arguments on the command line? Maybe provide the command line syntax? (exec arg1 arg2 arg3)
 
machines help you to do more, but experience less. Experience this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!