Cohsty243 Posted November 10, 2007 Share Posted November 10, 2007 could someone explain trap_Argv() to me? I want to use it to identify cmd2 and cmd3 from "/cmd1 cmd2 cmd3" But i don't know how trap_Argv() works lol. Link to comment Share on other sites More sharing options...
ensiform Posted November 10, 2007 Share Posted November 10, 2007 char somestring[MAX_TOKEN_CHARS]; trap_Argv(1, somestring, MAX_TOKEN_CHARS); // gets cmd2 in your example 0 is cmd, and 1 is first cmd, etc.. Link to comment Share on other sites More sharing options...
Cohsty243 Posted November 10, 2007 Author Share Posted November 10, 2007 Great! Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.